Skip to content

Commit

Permalink
Config Option to disable BWG Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
JT122406 committed Sep 14, 2024
1 parent becba05 commit c0160d3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package generations.gg.generations.structures.generationsstructures;


import generations.gg.generations.core.generationscore.common.config.ConfigLoader;
import generations.gg.generations.structures.generationsstructures.config.Config;
import generations.gg.generations.structures.generationsstructures.integration.Default;
Expand Down Expand Up @@ -37,7 +36,8 @@ public static void init(Integration integration) {
INTEGRATION = !CONFIG.integration.AllowIntegrations ? new Default() : integration;
GenerationsProcessorLists.init();
if (integration.getModId() != null)
if (integration.getModId().equals("biomesoplenty") && !CONFIG.integration.AllowBiomesOPlentyIntegration)
if ((integration.getModId().equals("biomesoplenty") && !CONFIG.integration.AllowBiomesOPlentyIntegration)
|| (integration.getModId().equals("biomeswevegone") && !CONFIG.integration.AllowBiomesWeveGoneIntegration))
INTEGRATION = new Default();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class Config {
public static class Integration {
public boolean AllowIntegrations = true;
public boolean AllowBiomesOPlentyIntegration = true;
public boolean AllowBiomesWeveGoneIntegration = true;
}

public VillageStructureGeneration villageStructureGeneration = new VillageStructureGeneration();
Expand Down
5 changes: 3 additions & 2 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
"depends": {
"fabric": "*",
"minecraft": ">=1.20.1",
"generations_core": "*"
"generations_core": "*",
"cobblemon": "1.5.2+1.20.1"
},
"suggests": {
"ohthebiomeswevegone" : ">=1.2.1-Alpha"
"biomeswevegone" : ">=1.2.3"
}
}
6 changes: 3 additions & 3 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ logoFile = "icon.png"
side = "BOTH"

[[dependencies.generations_structures]]
modId="ohthebiomeswevegone"
modId="biomeswevegone"
mandatory = false
versionRange = "[1.0.0,)"
versionRange = "[1.2.3,)"
ordering = "AFTER"
side = "BOTH"

[[dependencies.generations_structures]]
modId="cobblemon"
mandatory = true
versionRange = "1.4.1+1.20.1"
versionRange = "1.5.2+1.20.1"
ordering = "AFTER"
side = "BOTH"
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cobblemon_version=1.5.2+1.20.1

terrablender_version=3.0.1.7
BOP_version=18.0.0.598
BWG_version=1.1.2-Beta
BWG_version=1.2.3

# Publishing
github_token=xxx

0 comments on commit c0160d3

Please sign in to comment.