From 263351fa608d2684cca6e37da6fb221daa128eb0 Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Mon, 18 Nov 2024 13:25:48 +0000 Subject: [PATCH] Speed upgrade crafting: only fluid containers with a crafting-remaining item #1376 --- .../api/crafting/ingredient/FluidContainerIngredient.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/java/me/desht/pneumaticcraft/api/crafting/ingredient/FluidContainerIngredient.java b/src/api/java/me/desht/pneumaticcraft/api/crafting/ingredient/FluidContainerIngredient.java index c5c9983d7..762864734 100644 --- a/src/api/java/me/desht/pneumaticcraft/api/crafting/ingredient/FluidContainerIngredient.java +++ b/src/api/java/me/desht/pneumaticcraft/api/crafting/ingredient/FluidContainerIngredient.java @@ -69,6 +69,8 @@ public static FluidContainerIngredient of(TagKey tag, int amount) { @Override public boolean test(ItemStack stack) { + if (!stack.hasCraftingRemainingItem()) return false; + IFluidHandlerItem handler = stack.getCapability(Capabilities.FluidHandler.ITEM); if (handler == null) return false; return either.map(