Don't Propagate Paid Actions
All checks were successful
EnergonRelics/pipeline/head This commit looks good
All checks were successful
EnergonRelics/pipeline/head This commit looks good
This commit is contained in:
parent
dea30e1073
commit
1c23d15d2e
@ -51,7 +51,11 @@ public abstract class EnergyReceiverBlockEntity extends EnergyProviderBlockEntit
|
|||||||
if (providers.size() > 0) {
|
if (providers.size() > 0) {
|
||||||
action.expandPayments(providers.size());
|
action.expandPayments(providers.size());
|
||||||
for (EnergyProviderBlockEntity provider : providers) {
|
for (EnergyProviderBlockEntity provider : providers) {
|
||||||
provider.addPropagatedAction(action);
|
if (action.amountOwed() > 0) {
|
||||||
|
provider.addPropagatedAction(action);
|
||||||
|
} else {
|
||||||
|
action.pay(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
action.pay(0);
|
action.pay(0);
|
||||||
|
Reference in New Issue
Block a user