mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
Delegate recreateStructures to nms provider. Fixes BUKKIT-2760
This was a miss when updating to 1.4.2
This commit is contained in:
parent
1c14586c49
commit
a4892dfa72
2 changed files with 6 additions and 1 deletions
|
@ -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) {}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue