Fix superconductors overflowing

This commit is contained in:
modmuss50 2019-08-18 15:59:58 +01:00
parent 0bcf782f57
commit 2d64004171

View file

@ -67,6 +67,12 @@ public class AdjustableSUBlockEntity extends EnergyStorageBlockEntity implements
return maxOutput + extra; return maxOutput + extra;
} }
@Override
public void resetUpgrades() {
super.resetUpgrades();
superconductors = 0;
}
public void handleGuiInputFromClient(int id, boolean shift, boolean ctrl) { public void handleGuiInputFromClient(int id, boolean shift, boolean ctrl) {
if(shift){ if(shift){
id *= 4; id *= 4;