Skip to content

Commit

Permalink
Restore "Generate Palm" mod setting
Browse files Browse the repository at this point in the history
- Cherry oak forests' bamboo now generate in small clusters
- The "Generate Palm" mod setting has been restored
  • Loading branch information
Hugman76 committed Aug 7, 2022
1 parent c1a8bc7 commit ca2679c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public static class WorldFeaturesCategory implements ConfigData {
public boolean igneous_rock_patches = true;
@ConfigEntry.Gui.RequiresRestart
public boolean blueberry_bushes = true;
@ConfigEntry.Gui.RequiresRestart
public boolean palms = true;
}

@Config(name = "animals")
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/hugman/promenade/init/PalmBundle.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.hugman.promenade.init;

import com.hugman.dawn.api.creator.bundle.block.OverworldWoodBundle;
import com.hugman.promenade.Promenade;
import com.hugman.promenade.init.data.PromenadeTags;
import com.hugman.promenade.object.block.sapling_generator.PalmSaplingGenerator;
import com.hugman.promenade.object.trade_offers.TradeOfferUtils;
Expand Down Expand Up @@ -28,6 +29,8 @@ public static void addWanderingSales() {
}

public static void addToGen() {
BiomeModifications.addFeature(BiomeSelectors.tag(PromenadeTags.Biomes.HAS_PALMS), GenerationStep.Feature.VEGETAL_DECORATION, PALMS);
if(Promenade.CONFIG.world_features.palms) {
BiomeModifications.addFeature(BiomeSelectors.tag(PromenadeTags.Biomes.HAS_PALMS), GenerationStep.Feature.VEGETAL_DECORATION, PALMS);
}
}
}

0 comments on commit ca2679c

Please sign in to comment.