An accidental infinite buildcraft power buffer for superconductors is not a good idea.
This commit is contained in:
parent
86ada23be6
commit
86165e0271
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ public class PartWire extends PartUniversalConductor implements TSlottedPart, JN
|
||||||
@Override
|
@Override
|
||||||
public void doWork(PowerHandler workProvider)
|
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);
|
this.powerHandler.configure(0, this.buildcraftBuffer, this.buildcraftBuffer, this.buildcraftBuffer * 2);
|
||||||
super.doWork(workProvider);
|
super.doWork(workProvider);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue