mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Fix NPE causing issue with the cache. Derpy derp.
This commit is contained in:
1 parent
ae7e328228
commit
695b080197
1 file changed
+4
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user