mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
#2671 check if the chunk is loaded
This commit is contained in:
1 parent
849d87bb7d
commit
e535124397
1 file changed
+1
-1
@@ -158,6 +158,6 @@ public class TileWirelessCharger extends TileEntityEio implements IInternalPower
|
||||
}
|
||||
|
||||
public boolean isActive() {
|
||||
return getEnergyStored() > 0 && !isPoweredRedstone();
|
||||
return getEnergyStored() > 0 && worldObj != null && worldObj.getChunkProvider().chunkExists(xCoord >> 4, zCoord >> 4) && !isPoweredRedstone();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user