diff --git a/Modding-Library b/Modding-Library index fa2bad8bf..04df3282b 160000 --- a/Modding-Library +++ b/Modding-Library @@ -1 +1 @@ -Subproject commit fa2bad8bfcbc7fe855c5415d3a0cc85acca92b83 +Subproject commit 04df3282ba2aa9eeea58d15050bf75a4ce996080 diff --git a/src/resonantinduction/wire/TileEntityWire.java b/src/resonantinduction/wire/TileEntityWire.java index 97cf592fb..27fff1bd9 100644 --- a/src/resonantinduction/wire/TileEntityWire.java +++ b/src/resonantinduction/wire/TileEntityWire.java @@ -9,10 +9,12 @@ import net.minecraft.tileentity.TileEntityFurnace; import net.minecraftforge.common.ForgeDirection; import resonantinduction.PacketHandler; import resonantinduction.base.IPacketReceiver; +import universalelectricity.compatibility.Compatibility; import universalelectricity.compatibility.TileEntityUniversalConductor; import universalelectricity.core.block.INetworkProvider; import universalelectricity.core.vector.Vector3; import universalelectricity.core.vector.VectorHelper; +import buildcraft.api.power.PowerHandler; import com.google.common.io.ByteArrayDataInput; @@ -187,4 +189,11 @@ public class TileEntityWire extends TileEntityUniversalConductor implements IPac return null; } + @Override + public void doWork(PowerHandler workProvider) + { + this.buildcraftBuffer = Compatibility.BC3_RATIO * 25 * this.getMaterial().maxAmps; + this.powerHandler.configure(0, this.buildcraftBuffer, this.buildcraftBuffer, this.buildcraftBuffer * 2); + super.doWork(workProvider); + } }