mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-05 00:56:42 +00:00
Removed deprecated methods from custom world and fixed a missing Jedis check
This commit is contained in:
@ -3,6 +3,8 @@ package dev.plex.world;
|
||||
import java.util.Random;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.generator.BlockPopulator;
|
||||
import org.bukkit.generator.WorldInfo;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public abstract class FlatChunkGenerator extends CustomChunkGenerator
|
||||
{
|
||||
@ -12,9 +14,8 @@ public abstract class FlatChunkGenerator extends CustomChunkGenerator
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChunkData generateChunkData(World world, Random random, int x, int z, BiomeGrid biome)
|
||||
public void generateSurface(WorldInfo worldInfo, Random random, int x, int z, ChunkData chunk)
|
||||
{
|
||||
ChunkData chunk = this.createChunkData(world);
|
||||
for (int xx = 0; xx < 16; xx++)
|
||||
{
|
||||
for (int zz = 0; zz < 16; zz++)
|
||||
@ -22,7 +23,6 @@ public abstract class FlatChunkGenerator extends CustomChunkGenerator
|
||||
createLoopChunkData(xx, height, zz, chunk);
|
||||
}
|
||||
}
|
||||
return chunk;
|
||||
}
|
||||
|
||||
public abstract void createLoopChunkData(int x, int y, int z, ChunkData chunk);
|
||||
|
Reference in New Issue
Block a user