Add blockExists() check to isPoweredRedstone()

This commit is contained in:
tterrag1098 committed 2015-07-31 15:05:20 -04:00
1 parent a8dd5dda22
commit 087f9afddf
1 file changed
+1 -1
@@ -112,7 +112,7 @@ public abstract class TileEntityEnder extends TileEntity {
}
protected boolean isPoweredRedstone() {
return worldObj.getStrongestIndirectPower(xCoord, yCoord, zCoord) > 0;
return worldObj.blockExists(xCoord, yCoord, zCoord) ? worldObj.getStrongestIndirectPower(xCoord, yCoord, zCoord) > 0 : false;
}
/**