Skip to content

Commit 60cb1f9

Browse files
AquaeyesDaFuqs
authored andcommitted
Fix accumulation of 'underway' items.
Decrement 'underway' by the amount of items spilt when unable to be inserted. This otherwise prevents sending items when the total amount to be sent is less than the underway amount.
1 parent 99d13f9 commit 60cb1f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/de/dafuqs/spectrum/blocks/pastel_network/network/PastelTransmission.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ private void arriveAtDestination() {
107107
}
108108
if (inserted != amount) {
109109
InWorldInteractionHelper.scatter(world, destinationPos.getX() + 0.5, destinationPos.getY() + 0.5, destinationPos.getZ() + 0.5, variant, amount - inserted);
110+
destinationNode.addItemCountUnderway(-(amount - inserted));
110111
}
111112
}
112113

0 commit comments

Comments
 (0)