summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-02-09 20:00:17 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-02-09 20:00:17 +0000
commit6e58053eb7b8afe3c75a8d31f730ae92f74d0f7c (patch)
tree63dce11fe9916016a1be0e04007e5017b92b57de
parent7401ee54a3ae33dd14d13ae7253977b1364abe5e (diff)
downloadcraftbukkit-6e58053eb7b8afe3c75a8d31f730ae92f74d0f7c.tar
craftbukkit-6e58053eb7b8afe3c75a8d31f730ae92f74d0f7c.tar.gz
craftbukkit-6e58053eb7b8afe3c75a8d31f730ae92f74d0f7c.tar.lz
craftbukkit-6e58053eb7b8afe3c75a8d31f730ae92f74d0f7c.tar.xz
craftbukkit-6e58053eb7b8afe3c75a8d31f730ae92f74d0f7c.zip
Probably fixed getLoadedChunks()
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 0abcc941..ea509d9f 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -73,11 +73,12 @@ public class CraftWorld implements World {
}
public Chunk[] getLoadedChunks() {
- net.minecraft.server.Chunk[] chunks = (net.minecraft.server.Chunk[])provider.e.values().toArray();
+ Object[] chunks = provider.e.values().toArray();
org.bukkit.Chunk[] craftChunks = new CraftChunk[chunks.length];
for (int i = 0; i < chunks.length; i++) {
- craftChunks[i] = chunks[i].bukkitChunk;
+ net.minecraft.server.Chunk chunk = (net.minecraft.server.Chunk)chunks[i];
+ craftChunks[i] = chunk.bukkitChunk;
}
return craftChunks;