Fix NPE causing issue with the cache. Derpy derp.

This commit is contained in:
Christian 2013-01-26 10:24:48 -05:00
parent ae7e328228
commit 695b080197

View file

@ -880,6 +880,10 @@ public class ForgeChunkManager
public static Chunk fetchDormantChunk(long coords, World world)
{
Cache<Long, Chunk> cache = dormantChunkCache.get(world);
if (cache == null)
{
return null;
}
Chunk chunk = cache.getIfPresent(coords);
if (chunk != null)
{