Skip to content

Commit 4212b45

Browse files
committed
fixed extraneous crafts causing a kick
closes #233
1 parent 652b353 commit 4212b45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/de/ellpeck/prettypipes/network/PipeNetwork.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ public List<Pair<BlockPos, ItemStack>> getCurrentlyCrafting(BlockPos node, boole
333333
for (var craft : pipe.getActiveCrafts()) {
334334
if (!includeCanceled && craft.canceled)
335335
continue;
336+
if (craft.resultStackRemain.isEmpty())
337+
continue;
336338
// add up all the items that should go to the same location
337339
var existing = items.stream()
338340
.filter(s -> s.getLeft().equals(craft.resultDestPipe) && ItemEquality.compareItems(s.getRight(), craft.resultStackRemain, equalityTypes))

0 commit comments

Comments
 (0)