Fixing a common bug on EU Supporters (#542)
* Fixing a common bug on IC2 Supporters As i told in the doc. IC2 has tiers in EU. The limit is 0-13 if you go any higher or lower then you start to reset. Basicly Anything higher is overflowing a Integer also causes longer math etc. HV i think is the perfect voltage for 1 reason: EU Has energy Packets in Both IC2s. That means You can send in 10 Million EU per tick but these are only HV Packets so nothing will explode. So if anyone tries to do this bla bla bla... Anyway if you think 3 is to low. Go higher but stay in range of 0-13 Classic would reset you to LV if you do that... * Update ControllerEnergyIC2.java Removed Info Text
This commit is contained in:
@@ -8,7 +8,7 @@ public class ControllerEnergyIC2 implements IControllerEnergyIC2 {
|
|||||||
private BasicSink sink;
|
private BasicSink sink;
|
||||||
|
|
||||||
public ControllerEnergyIC2(final TileController controller) {
|
public ControllerEnergyIC2(final TileController controller) {
|
||||||
this.sink = new BasicSink(controller, (int) IntegrationIC2.toEU(controller.getEnergy().getMaxEnergyStored()), Integer.MAX_VALUE) {
|
this.sink = new BasicSink(controller, (int) IntegrationIC2.toEU(controller.getEnergy().getMaxEnergyStored()), 3) {
|
||||||
@Override
|
@Override
|
||||||
public double getDemandedEnergy() {
|
public double getDemandedEnergy() {
|
||||||
return Math.max(0.0D, IntegrationIC2.toEU(controller.getEnergy().getMaxEnergyStored()) - IntegrationIC2.toEU(controller.getEnergy().getEnergyStored()));
|
return Math.max(0.0D, IntegrationIC2.toEU(controller.getEnergy().getMaxEnergyStored()) - IntegrationIC2.toEU(controller.getEnergy().getEnergyStored()));
|
||||||
|
|||||||
Reference in New Issue
Block a user