mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
fix rb biome name
This commit is contained in:
Submodule PrivateConfig updated: 5589d41f15...ae759836b4
@@ -10,6 +10,8 @@ import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
@@ -47,8 +49,7 @@ public class RealisticBiomesGUI {
|
||||
currentBiome = biome;
|
||||
}
|
||||
if (inventory == null) {
|
||||
String biomeText = (currentBiome.toString().toLowerCase()).replace("_", " ");
|
||||
biomeText = StringUtils.capitalize(biomeText);
|
||||
String biomeText = PlainTextComponentSerializer.plainText().serialize(Component.translatable(currentBiome));
|
||||
biomeText = StringUtils.abbreviate(biomeText, 30);
|
||||
inventory = new ComponableInventory(ChatColor.DARK_GRAY + biomeText, 6, player);
|
||||
} else {
|
||||
|
||||
@@ -10,6 +10,8 @@ import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
@@ -47,8 +49,7 @@ public class RealisticBiomesGUI {
|
||||
currentBiome = biome;
|
||||
}
|
||||
if (inventory == null) {
|
||||
String biomeText = (currentBiome.toString().toLowerCase()).replace("_", " ");
|
||||
biomeText = StringUtils.capitalize(biomeText);
|
||||
String biomeText = PlainTextComponentSerializer.plainText().serialize(Component.translatable(currentBiome));
|
||||
biomeText = StringUtils.abbreviate(biomeText, 30);
|
||||
inventory = new ComponableInventory(ChatColor.DARK_GRAY + biomeText, 6, player);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user