fixed rednet interop; reduced powersupply output

This commit is contained in:
Florian Nücke 2013-11-14 22:26:54 +01:00
parent 6570d883c3
commit 6c5b1726b2
2 changed files with 3 additions and 3 deletions

View File

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

View File

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