mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-27 14:30:23 +00:00
remove usages of TerraWorld#getConfig
This commit is contained in:
1 parent
a56d1818c8
commit
8898bbd5c4
17 files changed
+23
-70
No files matched your search
+1
-3
@@ -30,11 +30,9 @@ public class CavePopulator implements TerraGenerationStage, Chunkified {
|
||||
@SuppressWarnings("try")
|
||||
@Override
|
||||
public void populate(@NotNull World world, @NotNull Chunk chunk) {
|
||||
TerraWorld tw = main.getWorld(world);
|
||||
WorldHandle handle = main.getWorldHandle();
|
||||
try(ProfileFrame ignore = main.getProfiler().profile("carving")) {
|
||||
Random random = PopulationUtil.getRandom(chunk);
|
||||
WorldConfig config = tw.getConfig();
|
||||
WorldConfig config = world.getConfig();
|
||||
if(config.disableCarving()) return;
|
||||
|
||||
for(UserDefinedCarver c : config.getRegistry(UserDefinedCarver.class).entries()) {
|
||||
|
||||
Reference in new issue
Block a user