Updates for changed IC2 API. Not sure if I'll be able to use @Optional with the new non-legacy BC MJ API as it uses Annotations instead of interfaces.

This commit is contained in:
Ben Spiers committed 2014-07-10 16:53:01 +01:00
1 parent 5e0dc25e2b
commit cd10bc88c8
14 files changed
+126 -34

No files matched your search

@@ -31,7 +31,7 @@ public final class ChargeUtils
if(item.canProvideEnergy(storer.inventory[slotID]))
{
double gain = ElectricItem.manager.discharge(storer.inventory[slotID], (int)((storer.getMaxEnergy() - storer.getEnergy())*Mekanism.TO_IC2), 4, true, false)*Mekanism.FROM_IC2;
double gain = ElectricItem.manager.discharge(storer.inventory[slotID], (int)((storer.getMaxEnergy() - storer.getEnergy())*Mekanism.TO_IC2), 4, true, true, false)*Mekanism.FROM_IC2;
storer.setEnergy(storer.getEnergy() + gain);
}
}