mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
fixed rednet interop; reduced powersupply output
This commit is contained in:
parent
6570d883c3
commit
6c5b1726b2
@ -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()
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user