mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
fix crash when renaming certain items
This commit is contained in:
1 parent
d9e95924cd
commit
e7dc1d9bd4
1 file changed
+2
-1
@@ -184,6 +184,7 @@ public class ToolStationLogic extends InventoryLogic implements ISidedInventory
|
||||
public void closeInventory() {}
|
||||
|
||||
public static boolean canRename(NBTTagCompound tags, ItemStack tool) {
|
||||
return !tags.hasKey("Name") || tags.getString("Name").equals("\u00A7f" + ToolBuilder.defaultToolName(tool));
|
||||
return tags != null && (!tags.hasKey("Name")
|
||||
|| tags.getString("Name").equals("\u00A7f" + ToolBuilder.defaultToolName(tool)));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user