Archiviert
13
0

Probably fixed getLoadedChunks()

Dieser Commit ist enthalten in:
Dinnerbone 2011-02-09 20:00:17 +00:00
Ursprung 7401ee54a3
Commit 6e58053eb7

Datei anzeigen

@ -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;