Fix NPE
This commit is contained in:
		| @@ -44,7 +44,7 @@ public class ItemWirelessGrid extends ItemEnergyContainer { | |||||||
|         addPropertyOverride(new ResourceLocation("connected"), new IItemPropertyGetter() { |         addPropertyOverride(new ResourceLocation("connected"), new IItemPropertyGetter() { | ||||||
|             @Override |             @Override | ||||||
|             public float apply(ItemStack stack, World world, EntityLivingBase entity) { |             public float apply(ItemStack stack, World world, EntityLivingBase entity) { | ||||||
|                 return (hasValidNBT(stack) && getDimensionId(stack) == entity.dimension) ? 1.0f : 0.0f; |                 return (entity != null && hasValidNBT(stack) && getDimensionId(stack) == entity.dimension) ? 1.0f : 0.0f; | ||||||
|             } |             } | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Raoul Van den Berge
					Raoul Van den Berge