Fix Bug
All checks were successful
EnergonRelics/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-07-28 13:18:05 -04:00
parent ac473b5ce2
commit f8642b9b38
3 changed files with 0 additions and 13 deletions

View File

@ -38,9 +38,6 @@ public class PassiveBatteryControllerBlockEntity extends EnergyReceiverBlockEnti
battery.setEnergy(battery.getEnergy() + amount); battery.setEnergy(battery.getEnergy() + amount);
} }
@Override
public void finish() {
}
} }
@Override @Override

View File

@ -39,8 +39,6 @@ public abstract class EnergyReceiverBlockEntity extends EnergyProviderBlockEntit
} else { } else {
action.pay(0); action.pay(0);
} }
action.finish();
} }
protected void addAction(Action action) { protected void addAction(Action action) {

View File

@ -36,7 +36,6 @@ public class Action {
void expandPayments(int amount); void expandPayments(int amount);
long amountOwed(); long amountOwed();
void pay(long amount); void pay(long amount);
void finish();
} }
public static class PropagatedActionImpl implements PropagatedAction { public static class PropagatedActionImpl implements PropagatedAction {
@ -80,12 +79,5 @@ public class Action {
} }
} }
} }
@Override
public void finish() {
if (payments < expectedPayments) {
throw new UnsupportedOperationException();
}
}
} }
} }