This commit is contained in:
modmuss50 2016-11-26 19:10:29 +00:00
parent 129895e559
commit 3a470df08b
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -52,7 +52,7 @@ public class ItemNanosaber extends ItemSword implements IEnergyItemInfo {
World worldIn, World worldIn,
@Nullable @Nullable
EntityLivingBase entityIn) { EntityLivingBase entityIn) {
if (stack != null && stack.getTagCompound().getBoolean("isActive")) { if (stack != null && stack.hasTagCompound() && stack.getTagCompound().hasKey("isActive") && stack.getTagCompound().getBoolean("isActive")) {
return 1.0F; return 1.0F;
} }
return 0.0F; return 0.0F;