mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 23:03:01 +00:00
Let's try that again, shall we? Reimplement redstone checks to not load chunks.
This commit is contained in:
1 parent
b1caa56f5a
commit
dd404b4209
1 file changed
+9
-2
@@ -671,9 +671,16 @@ public final class MekanismUtils
|
||||
{
|
||||
Coord4D sideCoord = coord.getFromSide(side);
|
||||
|
||||
if(sideCoord.exists(world))
|
||||
if(sideCoord.exists(world) && sideCoord.getFromSide(side).exists(world))
|
||||
{
|
||||
if(world.getIndirectPowerLevelTo(sideCoord.xCoord, sideCoord.yCoord, sideCoord.zCoord, side.ordinal()) > 0)
|
||||
if(sideCoord.getFromSide(side).exists(world))
|
||||
{
|
||||
if(world.getIndirectPowerLevelTo(sideCoord.xCoord, sideCoord.yCoord, sideCoord.zCoord, side.ordinal()) > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if(world.isBlockProvidingPowerTo(sideCoord.xCoord, sideCoord.yCoord, sideCoord.zCoord, side.ordinal()) > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user