From 31b0e4366c44adb605241c63dd12f17feb4e393e Mon Sep 17 00:00:00 2001 From: cshcrafter <70832670+cshcrafter@users.noreply.github.com> Date: Mon, 17 Jun 2024 18:44:39 -0700 Subject: [PATCH] Fix funnel actor stack size bug in FunnelMovementBehaviour.java Before this line change, all funnel actors had their filterAmount set incorrectly such that andesite funnels dropped full stacks instead of single items. With this quick one liner funnel actors now properly drop ItemStacks of the proper size - the configured setting for brass funnels and 1 for andesite ones. --- .../content/logistics/funnel/FunnelMovementBehaviour.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/logistics/funnel/FunnelMovementBehaviour.java b/src/main/java/com/simibubi/create/content/logistics/funnel/FunnelMovementBehaviour.java index 9b461c5f9..69e417134 100644 --- a/src/main/java/com/simibubi/create/content/logistics/funnel/FunnelMovementBehaviour.java +++ b/src/main/java/com/simibubi/create/content/logistics/funnel/FunnelMovementBehaviour.java @@ -74,8 +74,7 @@ public class FunnelMovementBehaviour implements MovementBehaviour { FilterItemStack filter = context.getFilterFromBE(); int filterAmount = context.blockEntityData.getInt("FilterAmount"); boolean upTo = context.blockEntityData.getBoolean("UpTo"); - if (filterAmount <= 0) - filterAmount = hasFilter ? 64 : 1; + filterAmount = hasFilter ? filterAmount : 1; ItemStack extract = ItemHelper.extract(context.contraption.getSharedInventory(), s -> filter.test(world, s),