Skip to content

Commit

Permalink
Fix armor without NBT crashing #1328
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Jan 14, 2015
1 parent 2d81be0 commit 60af741
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -15,7 +15,11 @@ public class ActiveTinkerArmor extends ActiveArmorMod
@Override
public void onArmorTick (World world, EntityPlayer player, ItemStack itemStack, ArmorCore armor, ArmorPart type)
{
if(!itemStack.hasTagCompound())
return;
NBTTagCompound tag = itemStack.getTagCompound().getCompoundTag(((IModifyable) itemStack.getItem()).getBaseTagName());
if(tag == null)
return;
if (tag.hasKey("Moss"))
{
int chance = tag.getInteger("Moss");
Expand Down

0 comments on commit 60af741

Please sign in to comment.