Fix #791
This commit is contained in:
parent
129895e559
commit
3a470df08b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue