mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-03 19:17:27 -04:00
Merge pull request #3449 from SanAndreasP/master-MC1.12
reversed comparison logic of length check within RedstoneAware:getOutput()
This commit is contained in:
commit
8155039146
@ -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