mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-23 21:49:45 +00:00
Fix armor without NBT crashing #1328
This commit is contained in:
1 parent
2d81be02d3
commit
60af741b46
1 file changed
+4
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user