mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Remove last usage of ToolPart and fix possible crash with displaying parts
This commit is contained in:
1 parent
9dad8691f4
commit
be33e4d96c
2 files changed
+4
-2
No files matched your search
@@ -25,7 +25,9 @@ public class ToolPart extends CraftingItem implements IToolPart
|
||||
@Override
|
||||
public String getItemStackDisplayName (ItemStack par1ItemStack)
|
||||
{
|
||||
String material = toolTextureNames[par1ItemStack.getItemDamage()];
|
||||
String material = "";
|
||||
if(par1ItemStack.getItemDamage() < toolTextureNames.length)
|
||||
material = toolTextureNames[par1ItemStack.getItemDamage()];
|
||||
String name = "";
|
||||
|
||||
if (StatCollector.canTranslate("toolpart." + partName + "." + material))
|
||||
|
||||
Reference in new issue
Block a user