From 74939083c8e80514ab5702c66991662284309e35 Mon Sep 17 00:00:00 2001 From: Ben Spiers Date: Sun, 19 Jul 2015 13:36:36 +0100 Subject: [PATCH] Fix frame mods moving Teleporters with fake worlds If there is no ChunkProvider, the block can't be unloaded. --- src/main/java/mekanism/api/Coord4D.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/mekanism/api/Coord4D.java b/src/main/java/mekanism/api/Coord4D.java index 1bda3815c..e94f39003 100644 --- a/src/main/java/mekanism/api/Coord4D.java +++ b/src/main/java/mekanism/api/Coord4D.java @@ -216,7 +216,7 @@ public class Coord4D /** * Returns a new Coord4D from a tag compound. - * @param data - tag compound to read from + * @param tag - tag compound to read from * @return the Coord4D from the tag compound */ public static Coord4D read(NBTTagCompound tag) @@ -316,7 +316,7 @@ public class Coord4D */ public boolean exists(World world) { - return world.getChunkProvider().chunkExists(xCoord >> 4, zCoord >> 4); + return world.getChunkProvider() == null || world.getChunkProvider().chunkExists(xCoord >> 4, zCoord >> 4); } /**