Skip to content

Commit

Permalink
v3.10.3 b763
Browse files Browse the repository at this point in the history
* removed internally hard-coded biome groups that were out of date
* updated default biome groups in rules.yml
  • Loading branch information
stumper66 committed Jun 12, 2023
1 parent 8fd2a22 commit a782864
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 51 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.lokka30</groupId>
<artifactId>LevelledMobs</artifactId>
<version>3.10.3 b762</version>
<version>3.10.3 b763</version>

<name>LevelledMobs</name>
<description>The Ultimate RPG Mob Levelling Solution</description>
Expand Down
40 changes: 0 additions & 40 deletions src/main/java/me/lokka30/levelledmobs/rules/RulesManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1254,46 +1254,6 @@ private boolean doesPlayerPassPermissionChecks(final @NotNull CachedModalList<St
public void buildBiomeGroupMappings(final Map<String, Set<String>> customBiomeGroups) {
this.biomeGroupMappings.clear();

this.biomeGroupMappings.put("SNOWY_BIOMES",
List.of("SNOWY_TUNDRA", "ICE_SPIKES", "SNOWY_TAIGA", "SNOWY_TAIGA_MOUNTAINS",
"SNOWY_TAIGA_HILLS", "FROZEN_RIVER", "SNOWY_BEACH", "SNOWY_MOUNTAINS"));

this.biomeGroupMappings.put("COLD_BIOMES",
List.of("MOUNTAINS", "GRAVELLY_MOUNTAINS", "MODIFIED_GRAVELLY_MOUNTAINS",
"WOODED_MOUNTAINS", "TAIGA", "TAIGA_MOUNTAINS", "TAIGA_HILLS", "GIANT_TREE_TAIGA",
"GIANT_TREE_TAIGA_HILLS",
"GIANT_SPRUCE_TAIGA", "GIANT_SPRUCE_TAIGA_HILLS", "STONE_SHORE"));

this.biomeGroupMappings.put("TEMPERATE_BIOMES",
List.of("PLAINS", "SUNFLOWER_PLAINS", "FOREST", "FLOWER_FOREST",
"BIRCH_FOREST", "BIRCH_FOREST_HILLS", "TALL_BIRCH_FOREST", "TALL_BIRCH_HILLS",
"DARK_FOREST", "DARK_FOREST_HILLS",
"SWAMP", "SWAMP_HILLS", "JUNGLE", "MODIFIED_JUNGLE", "JUNGLE_HILLS",
"MODIFIED_JUNGLE_EDGE", "BAMBOO_JUNGLE",
"BAMBOO_JUNGLE_HILLS", "RIVER", "BEACH", "MUSHROOM_FIELDS", "MUSHROOM_FIELD_SHORE",
"WOODED_HILLS"));

this.biomeGroupMappings.put("DRY_BIOMES",
List.of("DESERT", "DESERT_LAKES", "DESERT_HILLS", "SAVANNA",
"SHATTERED_SAVANNA", "SHATTERED_SAVANNA_PLATEAU", "BADLANDS", "ERODED_BADLANDS",
"WOODED_BADLANDS_PLATEAU",
"BADLANDS_PLATEAU", "SAVANNA_PLATEAU", "MODIFIED_BADLANDS_PLATEAU",
"MODIFIED_WOODED_BADLANDS_PLATEAU", "MODIFIED_SAVANNA_PLATEAU"));

this.biomeGroupMappings.put("OCEAN_BIOMES",
List.of("WARM_OCEAN", "DEEP_WARM_OCEAN", "LUKEWARM_OCEAN", "DEEP_LUKEWARM_OCEAN",
"OCEAN",
"DEEP_OCEAN", "COLD_OCEAN", "DEEP_COLD_OCEAN", "FROZEN_OCEAN",
"DEEP_FROZEN_OCEAN"));

this.biomeGroupMappings.put("NETHER_BIOMES",
List.of("NETHER_WASTES", "CRIMSON_FOREST", "WARPED_FOREST", "SOUL_SAND_VALLEY",
"BASALT_DELTAS"));

this.biomeGroupMappings.put("END_BIOMES",
List.of("THE_END", "SMALL_END_ISLANDS", "END_MIDLANDS", "END_HIGHLANDS",
"END_BARRENS"));

if (customBiomeGroups == null) {
return;
}
Expand Down
17 changes: 7 additions & 10 deletions src/main/resources/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,14 @@ mob-groups:


biome-groups:
taigas:
- TAIGA
- TAIGA_MOUNTAINS
- SNOWY_TUNDRA
cold_biomes:
- SNOWY_BEACH
- SNOWY_PLAINS
- SNOWY_SLOPES
- SNOWY_TAIGA
- SNOWY_TAIGA_HILLS
- GIANT_TREE_TAIGA
- GIANT_SPRUCE_TAIGA
- GIANT_SPRUCE_TAIGA_HILLS
- GIANT_TREE_TAIGA_HILLS
- SNOWY_TAIGA_MOUNTAINS
- FROZEN_OCEAN
- FROZEN_PEAKS
- FROZEN_RIVER
flowers:
- FLOWER_FOREST
- SUNFLOWER_PLAINS
Expand Down

0 comments on commit a782864

Please sign in to comment.