mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 21:20:06 +00:00
infinite loop fix & tool localization optimization (#167)
This commit is contained in:
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(
|
||||
|
||||
Reference in new issue
Block a user