mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-04 11:37:32 -04:00
Update RedstoneAware.scala
comparison should be checking if array length is bigger than and *not* equal to the ordinal
This commit is contained in:
parent
59d63fe57e
commit
178ad0131f
@ -80,7 +80,7 @@ trait RedstoneAware extends RotationAware {
|
||||
|
||||
def getOutput: Array[Int] = EnumFacing.values.map{ side: EnumFacing => _output(toLocal(side).ordinal) }
|
||||
|
||||
def getOutput(side: EnumFacing) = if (_output != null && _output.length >= toLocal(side).ordinal())
|
||||
def getOutput(side: EnumFacing) = if (_output != null && _output.length > toLocal(side).ordinal())
|
||||
_output(toLocal(side).ordinal())
|
||||
else 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user