working flora populator impl

This commit is contained in:
dfsek
2021-07-14 10:27:14 -07:00
parent 7a38284158
commit 089af42623
20 changed files with 116 additions and 35 deletions
@@ -33,6 +33,7 @@ public class NoiseChunkGenerator3D implements TerraChunkGenerator {
public NoiseChunkGenerator3D(ConfigPack c, TerraPlugin main) {
this.configPack = c;
this.main = main;
c.getStages().forEach(stage -> blockPopulators.add(stage.newInstance(c)));
}
@SuppressWarnings({"try"})
@@ -70,7 +71,6 @@ public class NoiseChunkGenerator3D implements TerraChunkGenerator {
TerraWorld tw = main.getWorld(world);
BiomeProvider grid = tw.getBiomeProvider();
if(!tw.isSafe()) return chunk;
int xOrig = (chunkX << 4);
int zOrig = (chunkZ << 4);