Refactoring

This commit is contained in:
WayofTime committed 2015-01-16 10:00:50 -05:00
1 parent fd330233dd
commit 56ccd3188d
76 files changed
+876 -433

No files matched your search

@@ -42,9 +42,9 @@ public class ItemDiabloKey extends EnergyItems
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
par3List.add("Binds other items to the owner's network");
if (!(par1ItemStack.stackTagCompound == null))
if (!(par1ItemStack.getTagCompound() == null))
{
par3List.add("Current owner: " + par1ItemStack.stackTagCompound.getString("ownerName"));
par3List.add("Current owner: " + par1ItemStack.getTagCompound().getString("ownerName"));
}
}
@@ -77,7 +77,7 @@ public class ItemDiabloKey extends EnergyItems
return par1ItemStack;
}
NBTTagCompound itemTag = par1ItemStack.stackTagCompound;
NBTTagCompound itemTag = par1ItemStack.getTagCompound();
if (itemTag == null || itemTag.getString("ownerName").equals(""))
{