Fix NPE causing issue with the cache. Derpy derp.
This commit is contained in:
parent
ae7e328228
commit
695b080197
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue