Don't Propagate Paid Actions
EnergonRelics/pipeline/head This commit looks good Details

This commit is contained in:
TheBrokenRail 2020-08-18 12:19:04 -04:00
parent dea30e1073
commit 1c23d15d2e
1 changed files with 5 additions and 1 deletions

View File

@ -51,7 +51,11 @@ public abstract class EnergyReceiverBlockEntity extends EnergyProviderBlockEntit
if (providers.size() > 0) {
action.expandPayments(providers.size());
for (EnergyProviderBlockEntity provider : providers) {
if (action.amountOwed() > 0) {
provider.addPropagatedAction(action);
} else {
action.pay(0);
}
}
} else {
action.pay(0);