Don't Propagate Paid Actions
All checks were successful
EnergonRelics/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-08-18 12:19:04 -04:00
parent dea30e1073
commit 1c23d15d2e

View File

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