Skip to content

Commit

Permalink
fix: connectable tiles not connecting to IConnectable
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed Nov 21, 2022
1 parent 0559591 commit 4d6bb95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ trait TTileConnectable extends CoreTile with TTileAcquisitions with IConnectable
def discoverStraightOverride(s:Int):Boolean = {//TODO remove to discoverStraightCenterOverride
val pos = posOfInternal.relative(Direction.values()(s))
val t = getLevel.getBlockEntity(pos) match {
case t: TTileConnectable => t
case t: IConnectable => t
case _ => null
}
if (t != null && canConnectPart(t, s, -1)) t.connectStraight(this, s^1, -1)
Expand Down

0 comments on commit 4d6bb95

Please sign in to comment.