This commit is contained in:
Raoul Van den Berge
2016-04-29 22:54:54 +02:00
parent ae5f390d18
commit 674881d3e5

View File

@@ -44,7 +44,7 @@ public class ItemWirelessGrid extends ItemEnergyContainer {
addPropertyOverride(new ResourceLocation("connected"), new IItemPropertyGetter() {
@Override
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;
}
});