mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-16 09:03:41 +01:00
Register world features properlyTM, Part II
- Re-enabled ability to control create world-gen with a global flag
This commit is contained in:
parent
dc13ea6485
commit
dd94cdd3f8
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@ package com.simibubi.create.foundation.worldgen;
|
|||
|
||||
import com.mojang.serialization.Codec;
|
||||
import com.mojang.serialization.codecs.RecordCodecBuilder;
|
||||
import com.simibubi.create.foundation.config.AllConfigs;
|
||||
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.world.gen.feature.IFeatureConfig;
|
||||
|
@ -46,6 +47,8 @@ public class ConfigDrivenOreFeatureConfig implements IFeatureConfig, IPlacementC
|
|||
}
|
||||
|
||||
public float getFrequency() {
|
||||
if (AllConfigs.COMMON.worldGen.disable.get())
|
||||
return 0;
|
||||
return entry().frequency.getF();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue