Let's try that again, shall we? Reimplement redstone checks to not load chunks.

This commit is contained in:
Ben Spiers 2015-02-20 13:55:55 +00:00
parent b1caa56f5a
commit dd404b4209

View file

@ -671,13 +671,20 @@ public final class MekanismUtils
{ {
Coord4D sideCoord = coord.getFromSide(side); Coord4D sideCoord = coord.getFromSide(side);
if(sideCoord.exists(world)) if(sideCoord.exists(world) && sideCoord.getFromSide(side).exists(world))
{
if(sideCoord.getFromSide(side).exists(world))
{ {
if(world.getIndirectPowerLevelTo(sideCoord.xCoord, sideCoord.yCoord, sideCoord.zCoord, side.ordinal()) > 0) if(world.getIndirectPowerLevelTo(sideCoord.xCoord, sideCoord.yCoord, sideCoord.zCoord, side.ordinal()) > 0)
{ {
return true; return true;
} }
} }
else if(world.isBlockProvidingPowerTo(sideCoord.xCoord, sideCoord.yCoord, sideCoord.zCoord, side.ordinal()) > 0)
{
return true;
}
}
} }
return false; return false;