infinite loop fix & tool localization optimization (#167)

This commit is contained in:
RiggZh authored and GitHub committed 2025-04-20 21:41:51 +02:00
1 parent d6d7a699fd
commit 2a7e9b350a
5 files changed
+39 -58

No files matched your search

@@ -268,12 +268,7 @@ public class ToolBuilder {
if (name != null && !name.equals("")) {
compound.setTag("display", new NBTTagCompound());
compound.getCompoundTag("display").setString("Name", "\u00A7f" + name);
}
// set a nice default name
else {
compound.setTag("display", new NBTTagCompound());
compound.getCompoundTag("display").setString("Name", "\u00A7f" + defaultToolName(headMat, item));
compound.getCompoundTag("display").setString("Name", name);
}
ToolCraftEvent.NormalTool event = new ToolCraftEvent.NormalTool(