Skip to content

Commit

Permalink
Merge branch 'release/v2.2.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
fuj1n committed Mar 21, 2021
2 parents db248aa + bdb5a79 commit 6c8f5b1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public void preInit(FMLCommonSetupEvent event) {
}

public void init(InterModEnqueueEvent event) {
MechworksWorld.getInstance().setupWorldGeneration();
}

public void postInit(InterModProcessEvent event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,23 @@
import java.util.function.Supplier;

public class MechworksWorld {
private static MechworksWorld INSTANCE;

private static final Logger log = LogManager.getLogger(TMechworks.modId + ".world");

private static final List<OreProperties> OVERWORLD_ORES = ImmutableList.of(
new OreProperties(() -> MechworksContent.Blocks.copper_ore.get().getDefaultState(), 8, ore -> ore.range(64).square().func_242731_b(20), MechworksConfig.COMMON_CONFIG.worldGen.copper),
new OreProperties(() -> MechworksContent.Blocks.aluminum_ore.get().getDefaultState(), 8, ore -> ore.range(64).square().func_242731_b(20), MechworksConfig.COMMON_CONFIG.worldGen.aluminum)
);

public MechworksWorld() {
INSTANCE = this;
}

public static MechworksWorld getInstance() {
return INSTANCE;
}

public void setupWorldGeneration() {
Registry<ConfiguredFeature<?, ?>> registry = WorldGenRegistries.CONFIGURED_FEATURE;

Expand Down

0 comments on commit 6c8f5b1

Please sign in to comment.