This commit is contained in:
parent
ac473b5ce2
commit
f8642b9b38
@ -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
|
||||||
|
@ -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) {
|
||||||
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user