From 37f0c7cf29541daea55b3bbadca8f7ceea52f8f0 Mon Sep 17 00:00:00 2001 From: RiggZh Date: Thu, 17 Apr 2025 09:26:35 +0800 Subject: [PATCH] fix: infinite loop in Tool Forge --- .../java/tconstruct/tools/logic/ToolForgeLogic.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/java/tconstruct/tools/logic/ToolForgeLogic.java b/src/main/java/tconstruct/tools/logic/ToolForgeLogic.java index 5c85edd4..2b913bad 100644 --- a/src/main/java/tconstruct/tools/logic/ToolForgeLogic.java +++ b/src/main/java/tconstruct/tools/logic/ToolForgeLogic.java @@ -67,15 +67,5 @@ public class ToolForgeLogic extends ToolStationLogic implements ISidedInventory output = tryRenameTool(output, name); } inventory[0] = output; - if (output != null && output.hasDisplayName()) { - TConstruct.packetPipeline - .sendToServer(new ToolStationPacket(xCoord, yCoord, zCoord, output.getDisplayName())); - } } - /* - * public void buildTool (String name) { toolName = name; ItemStack tool = - * ToolBuilder.instance.buildTool(inventory[1], inventory[2], inventory[3], inventory[4], name); if (inventory[0] == - * null) inventory[0] = tool; else { NBTTagCompound tags = inventory[0].getTagCompound(); if - * (!tags.getCompoundTag("InfiTool").hasKey("Built")) { inventory[0] = tool; } } } - */ }