diff options
author | feildmaster <admin@feildmaster.com> | 2012-11-01 21:11:32 -0500 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-11-01 21:32:28 -0500 |
commit | a4892dfa72ebf304a2cca736b7f5a8001950d887 (patch) | |
tree | 048e6e3a9a3cc0b49e53a4ed33a512281b3d66eb /src/main/java/org/bukkit | |
parent | 1c14586c49f6314a907ae11805f4b8579e095dcc (diff) | |
download | craftbukkit-a4892dfa72ebf304a2cca736b7f5a8001950d887.tar craftbukkit-a4892dfa72ebf304a2cca736b7f5a8001950d887.tar.gz craftbukkit-a4892dfa72ebf304a2cca736b7f5a8001950d887.tar.lz craftbukkit-a4892dfa72ebf304a2cca736b7f5a8001950d887.tar.xz craftbukkit-a4892dfa72ebf304a2cca736b7f5a8001950d887.zip |
Delegate recreateStructures to nms provider. Fixes BUKKIT-2760
This was a miss when updating to 1.4.2
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/generator/InternalChunkGenerator.java | 2 | ||||
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/generator/NormalChunkGenerator.java | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/generator/InternalChunkGenerator.java b/src/main/java/org/bukkit/craftbukkit/generator/InternalChunkGenerator.java index b3e7c4b1..19565e52 100644 --- a/src/main/java/org/bukkit/craftbukkit/generator/InternalChunkGenerator.java +++ b/src/main/java/org/bukkit/craftbukkit/generator/InternalChunkGenerator.java @@ -3,6 +3,6 @@ package org.bukkit.craftbukkit.generator; import net.minecraft.server.IChunkProvider; import org.bukkit.generator.ChunkGenerator; +// Do not implement functions to this class, add to NormalChunkGenerator public abstract class InternalChunkGenerator extends ChunkGenerator implements IChunkProvider { - public void recreateStructures(int i, int j) {} } diff --git a/src/main/java/org/bukkit/craftbukkit/generator/NormalChunkGenerator.java b/src/main/java/org/bukkit/craftbukkit/generator/NormalChunkGenerator.java index c5c3346d..c24c5247 100644 --- a/src/main/java/org/bukkit/craftbukkit/generator/NormalChunkGenerator.java +++ b/src/main/java/org/bukkit/craftbukkit/generator/NormalChunkGenerator.java @@ -69,6 +69,11 @@ public class NormalChunkGenerator extends InternalChunkGenerator { return provider.findNearestMapFeature(world, string, i, i1, i2); } + public void recreateStructures(int i, int j) { + provider.recreateStructures(i, j); + } + + // n.m.s implementations always return 0. (The true implementation is in ChunkProviderServer) public int getLoadedChunks() { return 0; } |