3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00

Delegate recreateStructures to nms provider. Fixes BUKKIT-2760

This was a miss when updating to 1.4.2
Dieser Commit ist enthalten in:
feildmaster 2012-11-01 21:11:32 -05:00
Ursprung 1c14586c49
Commit a4892dfa72
2 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -3,6 +3,6 @@ package org.bukkit.craftbukkit.generator;
import net.minecraft.server.IChunkProvider; import net.minecraft.server.IChunkProvider;
import org.bukkit.generator.ChunkGenerator; import org.bukkit.generator.ChunkGenerator;
// Do not implement functions to this class, add to NormalChunkGenerator
public abstract class InternalChunkGenerator extends ChunkGenerator implements IChunkProvider { public abstract class InternalChunkGenerator extends ChunkGenerator implements IChunkProvider {
public void recreateStructures(int i, int j) {}
} }

Datei anzeigen

@ -69,6 +69,11 @@ public class NormalChunkGenerator extends InternalChunkGenerator {
return provider.findNearestMapFeature(world, string, i, i1, i2); 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() { public int getLoadedChunks() {
return 0; return 0;
} }