Fix the accessor and type on World.getPersistentChunksFor()

Update FML: 8bd98c3
8bd98c3 Fix a small problem with the new MCP container- it can cause NPEs. Nice.
34cc42d Fix up some javadoc complaints
This commit is contained in:
Christian committed 2012-10-26 21:13:56 -04:00
1 parent 40368aec68
commit efcda1a946
3 files changed
+3 -3

No files matched your search

@@ -677,7 +677,7 @@ public class ForgeChunkManager
* @param world
* @return
*/
public static SetMultimap<ChunkCoordIntPair, Ticket> getPersistentChunksFor(World world)
public static ImmutableSetMultimap<ChunkCoordIntPair, Ticket> getPersistentChunksFor(World world)
{
return forcedChunks.containsKey(world) ? forcedChunks.get(world) : ImmutableSetMultimap.<ChunkCoordIntPair,Ticket>of();
}
Binary file not shown.
@@ -4,7 +4,7 @@
import java.util.Random;
import java.util.Set;
+import com.google.common.collect.SetMultimap;
+import com.google.common.collect.ImmutableSetMultimap;
+
+import net.minecraftforge.common.ForgeChunkManager;
+import net.minecraftforge.common.ForgeChunkManager.Ticket;
@@ -738,7 +738,7 @@
+ *
+ * @return
+ */
+ SetMultimap<ChunkCoordIntPair, Ticket> getPersistentChunks()
+ public ImmutableSetMultimap<ChunkCoordIntPair, Ticket> getPersistentChunks()
+ {
+ return ForgeChunkManager.getPersistentChunksFor(this);
+ }