Merge pull request #3449 from SanAndreasP/master-MC1.12

reversed comparison logic of length check within RedstoneAware:getOutput()
This commit is contained in:
Sangar 2021-12-27 16:37:03 +01:00 committed by GitHub
commit 8155039146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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