Some more fixes for chunkloading code. Works very reliably now.

This commit is contained in:
Christian committed 2012-09-23 23:08:38 -04:00
1 parent 3022d556a8
commit 0fd2b137ac
4 files changed
+76 -74

No files matched your search

@@ -518,7 +518,7 @@ public class ForgeChunkManager
*/
public static SetMultimap<ChunkCoordIntPair, Ticket> getPersistentChunksFor(World world)
{
return ImmutableSetMultimap.copyOf(forcedChunks.get(world));
return forcedChunks.containsKey(world) ? ImmutableSetMultimap.copyOf(forcedChunks.get(world)) : ImmutableSetMultimap.<ChunkCoordIntPair,Ticket>of();
}
static void saveWorld(World world)