Skip to content

Commit

Permalink
Fixed clay in other worldtypes too
Browse files Browse the repository at this point in the history
  • Loading branch information
UselessBullets committed Mar 21, 2024
1 parent 1c2d849 commit bd3ce9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ protected void initStructure() {
@Override
protected void initOre() {
String blockKey = Block.blockClay.getKey();
oreFeatures.addFeature(new WorldFeatureClay(hellConfig.clusterSize.get(blockKey)), hellConfig.chancesPerChunk.get(blockKey), hellConfig.verticalStartingRange.get(blockKey));
oreFeatures.addFeature(
(x) -> new WorldFeatureClay(hellConfig.clusterSize.get(blockKey)), null,
OverworldFunctions::getStandardOreBiomesDensity, new Object[]{hellConfig.chancesPerChunk.get(blockKey), null},
hellConfig.verticalStartingRange.get(blockKey), hellConfig.verticalEndingRange.get(blockKey));
oreFeatures.addManagedOreFeature(TerrainMain.MOD_ID, Block.dirt, 32, 20, 1, false);
oreFeatures.addManagedOreFeature(TerrainMain.MOD_ID, Block.gravel, 32, 10, 1, false);
oreFeatures.addManagedOreFeature(TerrainMain.MOD_ID, Block.oreCoalStone, 16, 20, 1, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ protected void initStructure() {
@Override
protected void initOre() {
String currentBlock = Block.blockClay.getKey();
oreFeatures.addFeature(new WorldFeatureClay(retroConfig.clusterSize.get(currentBlock)), retroConfig.chancesPerChunk.get(currentBlock), retroConfig.verticalStartingRange.get(currentBlock));
oreFeatures.addFeature(
(x) -> new WorldFeatureClay(retroConfig.clusterSize.get(currentBlock)), null,
OverworldFunctions::getStandardOreBiomesDensity, new Object[]{retroConfig.chancesPerChunk.get(currentBlock), null},
retroConfig.verticalStartingRange.get(currentBlock), retroConfig.verticalEndingRange.get(currentBlock));
oreFeatures.addManagedOreFeature(TerrainMain.MOD_ID, Block.dirt, 32, 20, 1, false);
oreFeatures.addManagedOreFeature(TerrainMain.MOD_ID, Block.gravel, 32, 10, 1, false);
oreFeatures.addManagedOreFeature(TerrainMain.MOD_ID, Block.oreCoalStone, 16, 20, 1, true);
Expand Down

0 comments on commit bd3ce9f

Please sign in to comment.