mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-04 03:27:19 -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: 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())
|
_output(toLocal(side).ordinal())
|
||||||
else 0
|
else 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user