From 695b080197bd577cc34fe6dbc72b74f4a74b2d5c Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 26 Jan 2013 10:24:48 -0500 Subject: [PATCH] Fix NPE causing issue with the cache. Derpy derp. --- common/net/minecraftforge/common/ForgeChunkManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/net/minecraftforge/common/ForgeChunkManager.java b/common/net/minecraftforge/common/ForgeChunkManager.java index 57274c83c..4794f53b2 100644 --- a/common/net/minecraftforge/common/ForgeChunkManager.java +++ b/common/net/minecraftforge/common/ForgeChunkManager.java @@ -880,6 +880,10 @@ public class ForgeChunkManager public static Chunk fetchDormantChunk(long coords, World world) { Cache cache = dormantChunkCache.get(world); + if (cache == null) + { + return null; + } Chunk chunk = cache.getIfPresent(coords); if (chunk != null) {