forked from TheBrokenRail/EnergonRelics
Don't Propagate Paid Actions
This commit is contained in:
parent
dea30e1073
commit
1c23d15d2e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue