From 1a983aceb395bea98789ee396b899d9bb4a6258b Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Tue, 8 Feb 2011 15:22:46 +0000 Subject: [PATCH] Just cleaning some commits. Don't mind me. --- .../minecraft/server/ChunkProviderServer.java | 111 ++---------------- .../org/bukkit/craftbukkit/CraftWorld.java | 109 +++++++++++++++-- 2 files changed, 104 insertions(+), 116 deletions(-) diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java index c2e47ba941..e3c9dee6b3 100644 --- a/src/main/java/net/minecraft/server/ChunkProviderServer.java +++ b/src/main/java/net/minecraft/server/ChunkProviderServer.java @@ -19,13 +19,13 @@ import org.bukkit.event.world.ChunkLoadEvent; public class ChunkProviderServer implements IChunkProvider { - private LongHashset a = new LongHashset(); // CraftBukkit + public LongHashset a = new LongHashset(); // CraftBukkit private Chunk b; private IChunkProvider c; private IChunkLoader d; - private LongHashtable e = new LongHashtable(); // CraftBukkit - private List f = new ArrayList(); - private WorldServer g; + public LongHashtable e = new LongHashtable(); // CraftBukkit + public List f = new ArrayList(); // Craftbukkit + public WorldServer g; // Craftbukkit public ChunkProviderServer(WorldServer worldserver, IChunkLoader ichunkloader, IChunkProvider ichunkprovider) { this.b = new EmptyChunk(worldserver, new byte['\u8000'], 0, 0); @@ -35,106 +35,9 @@ public class ChunkProviderServer implements IChunkProvider { } // CraftBukkit start - public org.bukkit.Chunk[] getLoadedChunks() { - Object[] chunks = e.values().toArray(); - org.bukkit.Chunk[] craftChunks = new CraftChunk[chunks.length]; - - for(int cnt =0;cnt