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.
This commit is contained in:
cshcrafter 2024-06-17 18:44:39 -07:00 committed by GitHub
parent 26fc820c69
commit 31b0e4366c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,8 +74,7 @@ public class FunnelMovementBehaviour implements MovementBehaviour {
FilterItemStack filter = context.getFilterFromBE(); FilterItemStack filter = context.getFilterFromBE();
int filterAmount = context.blockEntityData.getInt("FilterAmount"); int filterAmount = context.blockEntityData.getInt("FilterAmount");
boolean upTo = context.blockEntityData.getBoolean("UpTo"); boolean upTo = context.blockEntityData.getBoolean("UpTo");
if (filterAmount <= 0) filterAmount = hasFilter ? filterAmount : 1;
filterAmount = hasFilter ? 64 : 1;
ItemStack extract = ItemHelper.extract(context.contraption.getSharedInventory(), ItemStack extract = ItemHelper.extract(context.contraption.getSharedInventory(),
s -> filter.test(world, s), s -> filter.test(world, s),