mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-19 03:39:20 +00:00
Add blockExists() check to isPoweredRedstone()
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user