diff --git a/buildinggame/buildinggame-impl/src/main/java/com/gmail/stefvanschiedev/buildinggame/utils/guis/buildmenu/BiomeMenu.java b/buildinggame/buildinggame-impl/src/main/java/com/gmail/stefvanschiedev/buildinggame/utils/guis/buildmenu/BiomeMenu.java index 314ed133..0d9777b1 100644 --- a/buildinggame/buildinggame-impl/src/main/java/com/gmail/stefvanschiedev/buildinggame/utils/guis/buildmenu/BiomeMenu.java +++ b/buildinggame/buildinggame-impl/src/main/java/com/gmail/stefvanschiedev/buildinggame/utils/guis/buildmenu/BiomeMenu.java @@ -45,12 +45,15 @@ class BiomeMenu { BiomeMenu(Plot plot) { this.plot = plot; + Version version = Version.getVersion(); String resourceLocation; - if (Version.getVersion().isAtLeast(Version.V1_20_3)) { - resourceLocation = "gui/buildmenu/biome/biomemenu_geq_1_20_3.xml"; + if (version.isAtLeast(Version.V1_21_4)) { + resourceLocation = "gui/buildmenu/biome/biomemenu_1_21_4.xml"; + } else if (version.isAtLeast(Version.V1_20_3)) { + resourceLocation = "gui/buildmenu/biome/biomemenu_1_20_3.xml"; } else { - resourceLocation = "gui/buildmenu/biome/biomemenu_le_1_20_3.xml"; + resourceLocation = "gui/buildmenu/biome/biomemenu_1_19.xml"; } InputStream resource = Main.getInstance().getResource(resourceLocation); diff --git a/buildinggame/buildinggame-impl/src/main/resources/gui/buildmenu/biome/biomemenu_le_1_20_3.xml b/buildinggame/buildinggame-impl/src/main/resources/gui/buildmenu/biome/biomemenu_1_19.xml similarity index 100% rename from buildinggame/buildinggame-impl/src/main/resources/gui/buildmenu/biome/biomemenu_le_1_20_3.xml rename to buildinggame/buildinggame-impl/src/main/resources/gui/buildmenu/biome/biomemenu_1_19.xml diff --git a/buildinggame/buildinggame-impl/src/main/resources/gui/buildmenu/biome/biomemenu_geq_1_20_3.xml b/buildinggame/buildinggame-impl/src/main/resources/gui/buildmenu/biome/biomemenu_1_20_3.xml similarity index 100% rename from buildinggame/buildinggame-impl/src/main/resources/gui/buildmenu/biome/biomemenu_geq_1_20_3.xml rename to buildinggame/buildinggame-impl/src/main/resources/gui/buildmenu/biome/biomemenu_1_20_3.xml diff --git a/buildinggame/buildinggame-impl/src/main/resources/gui/buildmenu/biome/biomemenu_1_21_4.xml b/buildinggame/buildinggame-impl/src/main/resources/gui/buildmenu/biome/biomemenu_1_21_4.xml new file mode 100644 index 00000000..2c780fb4 --- /dev/null +++ b/buildinggame/buildinggame-impl/src/main/resources/gui/buildmenu/biome/biomemenu_1_21_4.xml @@ -0,0 +1,248 @@ + + + + + *gui.biome.snowy-plains.name + + *gui.biome.snowy-plains.lores + + + SNOWY_PLAINS + + + + *gui.biome.taiga.name + + *gui.biome.taiga.lores + + + TAIGA + + + + *gui.biome.windswept-hills.name + + *gui.biome.windswept-hills.lores + + + WINDSWEPT_HILLS + + + + *gui.biome.meadow.name + + *gui.biome.meadow.lores + + + MEADOW + + + + *gui.biome.frozen-peaks.name + + *gui.biome.frozen-peaks.lores + + + FROZEN_PEAKS + + + + *gui.biome.stony-peaks.name + + *gui.biome.stony-peaks.lores + + + STONY_PEAKS + + + + *gui.biome.plains.name + + *gui.biome.plains.lores + + + PLAINS + + + + *gui.biome.forest.name + + *gui.biome.forest.lores + + + FOREST + + + + *gui.biome.dark-forest.name + + *gui.biome.dark-forest.lores + + + DARK_FOREST + + + + *gui.biome.pale-garden.name + + *gui.biome.pale-garden.lore + + + PALE_GARDEN + + + + *gui.biome.swamp.name + + *gui.biome.swamp.lores + + + SWAMP + + + + *gui.biome.jungle.name + + *gui.biome.jungle.lores + + + JUNGLE + + + + *gui.biome.bamboo-jungle.name + + *gui.biome.bamboo-jungle.lore + + + BAMBOO_JUNGLE + + + + *gui.biome.mushroom-fields.name + + *gui.biome.mushroom-fields.lores + + + MUSHROOM_FIELDS + + + + *gui.biome.the-end.name + + *gui.biome.the-end.lores + + + THE_END + + + + *gui.biome.desert.name + + *gui.biome.desert.lores + + + DESERT + + + + *gui.biome.savanna.name + + *gui.biome.savanna.lores + + + SAVANNA + + + + *gui.biome.badlands.name + + *gui.biome.badlands.lores + + + BADLANDS + + + + *gui.biome.deep-dark.name + + *gui.biome.deep-dark.lores + + + DEEP_DARK + + + + *gui.biome.mangrove-swamp.name + + *gui.biome.mangrove-swamp.lores + + + MANGROVE_SWAMP + + + + *gui.biome.nether-wastes.name + + *gui.biome.nether-wastes.lores + + + NETHER_WASTES + + + + *gui.biome.crimson-forest.name + + *gui.biome.crimson-forest.lores + + + CRIMSON_FOREST + + + + *gui.biome.soul-sand-valley.name + + *gui.biome.soul-sand-valley.lores + + + SOUL_SAND_VALLEY + + + + *gui.biome.warped-forest.name + + *gui.biome.warped-forest.lores + + + WARPED_FOREST + + + + *gui.biome.basalt-deltas.name + + *gui.biome.basalt-deltas.lore + + + BASALT_DELTAS + + + + *gui.biome.ocean.name + + *gui.biome.ocean.lores + + + OCEAN + + + + *gui.biome.the-void.name + + *gui.biome.the-void.lores + + + THE_VOID + + + + \ No newline at end of file diff --git a/buildinggame/buildinggame-impl/src/main/resources/messages.yml b/buildinggame/buildinggame-impl/src/main/resources/messages.yml index 7028057b..c53b77fa 100644 --- a/buildinggame/buildinggame-impl/src/main/resources/messages.yml +++ b/buildinggame/buildinggame-impl/src/main/resources/messages.yml @@ -4492,6 +4492,10 @@ gui: name: "&aDark Forest" lores: - "&7Change the biome to Dark Forest" + pale-garden: + name: "&aPale Garden" + lore: + - "&7Change the biome to Pale Garden" swamp: name: "&aSwamp" lores: