forked from TheBrokenRail/EnergonRelics
Fix Bug
This commit is contained in:
parent
ac473b5ce2
commit
f8642b9b38
|
@ -38,9 +38,6 @@ public class PassiveBatteryControllerBlockEntity extends EnergyReceiverBlockEnti
|
|||
battery.setEnergy(battery.getEnergy() + amount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void finish() {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -39,8 +39,6 @@ public abstract class EnergyReceiverBlockEntity extends EnergyProviderBlockEntit
|
|||
} else {
|
||||
action.pay(0);
|
||||
}
|
||||
|
||||
action.finish();
|
||||
}
|
||||
|
||||
protected void addAction(Action action) {
|
||||
|
|
|
@ -36,7 +36,6 @@ public class Action {
|
|||
void expandPayments(int amount);
|
||||
long amountOwed();
|
||||
void pay(long amount);
|
||||
void finish();
|
||||
}
|
||||
|
||||
public static class PropagatedActionImpl implements PropagatedAction {
|
||||
|
@ -80,12 +79,5 @@ public class Action {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void finish() {
|
||||
if (payments < expectedPayments) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue