diff --git a/li/cil/oc/common/tileentity/Redstone.scala b/li/cil/oc/common/tileentity/Redstone.scala index 531e5037f..cca2f271b 100644 --- a/li/cil/oc/common/tileentity/Redstone.scala +++ b/li/cil/oc/common/tileentity/Redstone.scala @@ -185,13 +185,13 @@ with IConnectable with IBundledEmitter with IBundledUpdatable with IRedstoneEmit def connectsAroundCorner(wire: IWire, blockFace: Int, fromDirection: Int) = false @Optional.Method(modid = "RedLogic") - def getBundledCableStrength(blockFace: Int, toDirection: Int): Array[Byte] = _bundledOutput(toDirection) + def getBundledCableStrength(blockFace: Int, toDirection: Int): Array[Byte] = _bundledOutput(ForgeDirection.getOrientation(toDirection).getOpposite.ordinal()) @Optional.Method(modid = "RedLogic") def onBundledInputChanged() = checkRedstoneInputChanged() @Optional.Method(modid = "RedLogic") - def getEmittedSignalStrength(blockFace: Int, toDirection: Int): Short = _output(toDirection) + def getEmittedSignalStrength(blockFace: Int, toDirection: Int): Short = (_output(ForgeDirection.getOrientation(toDirection).getOpposite.ordinal()) & 0xFF).toShort @Optional.Method(modid = "RedLogic") def onRedstoneInputChanged() = checkRedstoneInputChanged() diff --git a/li/cil/oc/server/component/PowerSupply.scala b/li/cil/oc/server/component/PowerSupply.scala index 52da046a6..c19316bd1 100644 --- a/li/cil/oc/server/component/PowerSupply.scala +++ b/li/cil/oc/server/component/PowerSupply.scala @@ -11,7 +11,7 @@ class PowerSupply extends ManagedComponent { override def update() { super.update() - node.changeBuffer(2) + node.changeBuffer(1.25) } @LuaCallback(value = "localBufferSize", direct = true)