Let's try that again, shall we? Reimplement redstone checks to not load chunks.
This commit is contained in:
parent
b1caa56f5a
commit
dd404b4209
1 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue