mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
Probably fixed getLoadedChunks()
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
3b73bf1447
commit
70fde138ab
@ -73,11 +73,12 @@ public class CraftWorld implements World {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Chunk[] getLoadedChunks() {
|
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];
|
org.bukkit.Chunk[] craftChunks = new CraftChunk[chunks.length];
|
||||||
|
|
||||||
for (int i = 0; i < chunks.length; i++) {
|
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;
|
return craftChunks;
|
||||||
|
Loading…
Reference in New Issue
Block a user