diff options
author | Mike Primm <mike@primmhome.com> | 2011-09-26 10:15:45 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-09-30 23:31:37 -0400 |
commit | aa6685111980454cdf70b48b653f3065f5c2fdf1 (patch) | |
tree | d1172423505c46a7ca60715163a9e8ba4486399c /src/main/java/org/bukkit | |
parent | 64322ed26b1e353a9d426713799c4100346208ac (diff) | |
download | craftbukkit-aa6685111980454cdf70b48b653f3065f5c2fdf1.tar craftbukkit-aa6685111980454cdf70b48b653f3065f5c2fdf1.tar.gz craftbukkit-aa6685111980454cdf70b48b653f3065f5c2fdf1.tar.lz craftbukkit-aa6685111980454cdf70b48b653f3065f5c2fdf1.tar.xz craftbukkit-aa6685111980454cdf70b48b653f3065f5c2fdf1.zip |
Correct biome data in ChunkSnapshot - wrong API used
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftChunk.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftChunk.java b/src/main/java/org/bukkit/craftbukkit/CraftChunk.java index 9a3c4b53..543fb0e6 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftChunk.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftChunk.java @@ -154,11 +154,10 @@ public class CraftChunk implements Chunk { if (includeBiome || includeBiomeTempRain) { WorldChunkManager wcm = chunk.world.getWorldChunkManager(); - BiomeBase[] biomeBase = wcm.getBiomes((BiomeBase[])null, getX() << 4, getZ() << 4, 16, 16); if (includeBiome) { biome = new BiomeBase[256]; - System.arraycopy(biomeBase, 0, biome, 0, biome.length); + wcm.a(biome, x << 4, z << 4, 16, 16); } if (includeBiomeTempRain) { @@ -212,11 +211,10 @@ public class CraftChunk implements Chunk { if (includeBiome || includeBiomeTempRain) { WorldChunkManager wcm = world.getHandle().getWorldChunkManager(); - BiomeBase[] biomeBase = wcm.getBiomes((BiomeBase[])null, x << 4, z << 4, 16, 16); if (includeBiome) { biome = new BiomeBase[256]; - System.arraycopy(biomeBase, 0, biome, 0, biome.length); + wcm.a(biome, x << 4, z << 4, 16, 16); } if (includeBiomeTempRain) { |