Delegate recreateStructures to nms provider. Fixes BUKKIT-2760

This was a miss when updating to 1.4.2
This commit is contained in:
feildmaster 2012-11-01 21:11:32 -05:00
parent 1c14586c49
commit a4892dfa72
2 changed files with 6 additions and 1 deletions

View File

@ -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) {}
}

View File

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