From cba89b0323be18aebe7bf9b345825253767f4865 Mon Sep 17 00:00:00 2001 From: PrototypeTrousers Date: Tue, 27 Jun 2023 11:47:23 -0300 Subject: [PATCH] fix damageable container items not being returned immediately for simulation --- src/main/java/appeng/crafting/CraftingTreeProcess.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/appeng/crafting/CraftingTreeProcess.java b/src/main/java/appeng/crafting/CraftingTreeProcess.java index 469ca0a8e..30d496efc 100644 --- a/src/main/java/appeng/crafting/CraftingTreeProcess.java +++ b/src/main/java/appeng/crafting/CraftingTreeProcess.java @@ -207,6 +207,14 @@ public class CraftingTreeProcess { if (this.details.isCraftable() && stack.getItem().hasContainerItem(stack.getDefinition())) { final ItemStack is = Platform.getContainerItem(stack.createItemStack()); final IAEItemStack o = AEItemStack.fromItemStack(is); + + //if the container item is a identical copy or a damageable one, return it immediately. + //if it is not it will need to be recrafted + if (stack.equals(is) || is.getItem().isDamageable() || Platform.isGTDamageableItem(is.getItem())){ + inv.injectItems(o, Actionable.MODULATE, src); + this.bytes++; + continue; + } if (o != null) { if (containerItems == null) { containerItems = new ArrayList<>();