diff options
| author | Muramasa- <haydenkilloh@gmail.com> | 2016-08-22 22:50:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-22 22:50:58 +0100 |
| commit | ccfc536501e8133794ec2a0c5f2a589201af81d6 (patch) | |
| tree | c9f8c9af123f7fce7a942a2130973c51cfb3b65b /src/main/java/gregtech/api/items | |
| parent | 0476a036352600b83133caf167ac5dee4b9b5176 (diff) | |
| parent | 5a94ea039ba265d966aaa7872aecb79a4851769d (diff) | |
| download | GT5-Unofficial-ccfc536501e8133794ec2a0c5f2a589201af81d6.tar.gz GT5-Unofficial-ccfc536501e8133794ec2a0c5f2a589201af81d6.tar.bz2 GT5-Unofficial-ccfc536501e8133794ec2a0c5f2a589201af81d6.zip | |
Merge pull request #603 from Muramasa-/Mats
Material Rework
Diffstat (limited to 'src/main/java/gregtech/api/items')
| -rw-r--r-- | src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java b/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java index cfbf9deb7f..29306be0c7 100644 --- a/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java +++ b/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java @@ -184,10 +184,10 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item implements if (tToolStats != null) { NBTTagCompound tMainNBT = new NBTTagCompound(), tToolNBT = new NBTTagCompound(); if (aPrimaryMaterial != null) { - tToolNBT.setString("PrimaryMaterial", aPrimaryMaterial.toString()); + tToolNBT.setString("PrimaryMaterial", aPrimaryMaterial.mName); tToolNBT.setLong("MaxDamage", 100L * (long) (aPrimaryMaterial.mDurability * tToolStats.getMaxDurabilityMultiplier())); } - if (aSecondaryMaterial != null) tToolNBT.setString("SecondaryMaterial", aSecondaryMaterial.toString()); + if (aSecondaryMaterial != null) tToolNBT.setString("SecondaryMaterial", aSecondaryMaterial.mName); if (aElectricArray != null) { tToolNBT.setBoolean("Electric", true); |
