fix: infinite loop in Tool Forge

This commit is contained in:
RiggZh committed 2025-04-17 09:26:35 +08:00
1 parent dbf67f37eb
commit 37f0c7cf29
1 file changed
-10
@@ -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; } } }
*/
}