Added a workaround for GTCE fake world

This commit is contained in:
Unknown 2018-12-27 20:05:27 +01:00 committed by unknown
parent ceb8245381
commit aa10e0a3e3

View file

@ -127,6 +127,9 @@ public class WorldHandler {
WarpDrive.logger.info(String.format("onBlockUpdate args %s actual %s",
blockEvent.getState(), blockEvent.getWorld().getBlockState(blockEvent.getPos())));
}
if (WarpDriveConfig.isGregTechLoaded && blockEvent.getWorld().getWorldInfo().getWorldName().equals("DummyServer")) {
return;
}
WarpDrive.starMap.onBlockUpdated(blockEvent.getWorld(), blockEvent.getPos(), blockEvent.getState());
ChunkHandler.onBlockUpdated(blockEvent.getWorld(), blockEvent.getPos().getX(), blockEvent.getPos().getY(), blockEvent.getPos().getZ());
}