1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-06 15:41:50 +00:00

Check for blank instead of empty legacy color

This commit is contained in:
onebeastchris
2025-09-17 13:27:37 +02:00
parent 9f8bc9db99
commit 9f42783d81

View File

@@ -64,7 +64,7 @@ public final class TrimRecipe {
// Find the nearest legacy color from the style Java gives us to work with
Component description = MessageTranslator.componentFromNbtTag(context.data().get("description"));
String legacy = MessageTranslator.convertMessage(Component.space().style(description.style()));
String color = legacy.isEmpty() ? ChatColor.WHITE : legacy.substring(2).trim();
String color = legacy.isBlank() ? ChatColor.WHITE : legacy.substring(2).trim();
int networkId = context.getNetworkId(context.id());
ItemMapping trimItem = null;