mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 09:18:05 -04:00
parent
2653f31c98
commit
3228131dbb
@ -22,8 +22,8 @@ class Keyboard extends traits.Environment with traits.Rotatable with traits.Immi
|
||||
|
||||
override def node = keyboard.node
|
||||
|
||||
def hasNodeOnSide(side: ForgeDirection) =
|
||||
side == facing.getOpposite || side == forward || (isOnWall && side == forward.getOpposite)
|
||||
def hasNodeOnSide(side: ForgeDirection) : Boolean =
|
||||
side != facing && (isOnWall || side != forward.getOpposite) && (node == null || !node.neighbors.iterator().hasNext)
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user