Update to latest Gaea

This commit is contained in:
dfsek
2020-11-05 09:09:50 -07:00
parent 57f18477e4
commit d4fc92d770
7 changed files with 13 additions and 6 deletions

View File

@@ -32,6 +32,7 @@ import org.polydev.gaea.generation.GenerationPopulator;
import org.polydev.gaea.math.ChunkInterpolator;
import org.polydev.gaea.math.FastNoiseLite;
import org.polydev.gaea.population.PopulationManager;
import org.polydev.gaea.profiler.WorldProfiler;
import org.polydev.gaea.world.palette.Palette;
import java.io.FileNotFoundException;
@@ -152,6 +153,12 @@ public class TerraChunkGenerator extends GaeaChunkGenerator {
}
}
@Override
public void attachProfiler(WorldProfiler p) {
super.attachProfiler(p);
popMan.attachProfiler(p);
}
public static synchronized void fixChunk(Chunk c) {
if(! (c.getWorld().getGenerator() instanceof TerraChunkGenerator)) throw new IllegalArgumentException();
popMap.get(c.getWorld()).checkNeighbors(c.getX(), c.getZ(), c.getWorld());