An accidental infinite buildcraft power buffer for superconductors is not a good idea.

This commit is contained in:
Ben Spiers 2013-09-29 04:08:07 +01:00
parent 86ada23be6
commit 86165e0271

View file

@ -188,7 +188,7 @@ public class PartWire extends PartUniversalConductor implements TSlottedPart, JN
@Override
public void doWork(PowerHandler workProvider)
{
this.buildcraftBuffer = Compatibility.BC3_RATIO * 25 * this.getMaterial().maxAmps;
this.buildcraftBuffer = Compatibility.BC3_RATIO * 25 * Math.min(this.getMaterial().maxAmps, 100);
this.powerHandler.configure(0, this.buildcraftBuffer, this.buildcraftBuffer, this.buildcraftBuffer * 2);
super.doWork(workProvider);
}