Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-10-08 02:40:09 +02:00
yay light purple item name
Dieser Commit ist enthalten in:
Ursprung
9656f95233
Commit
94742db0fb
@ -49,9 +49,11 @@ public class DebugStickItem extends Item {
|
|||||||
nbt.putList("ench", NbtType.COMPOUND, new ArrayList<>());
|
nbt.putList("ench", NbtType.COMPOUND, new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Custom name
|
// Only make the name pink - WHICH IS DONE CLIENT SIDE o.o - if no custom name exists
|
||||||
if (builder.getCustomName() == null) {
|
String translation = MinecraftLocale.getLocaleString("item.minecraft.debug_stick", session.locale());
|
||||||
builder.setCustomName(ChatColor.DARK_PURPLE + MinecraftLocale.getLocaleString("item.minecraft.debug_stick", session.locale()));
|
|
||||||
|
if ((ChatColor.RESET + ChatColor.WHITE + translation).equals(builder.getCustomName())) {
|
||||||
|
builder.setCustomName(ChatColor.RESET + ChatColor.LIGHT_PURPLE + translation);
|
||||||
}
|
}
|
||||||
|
|
||||||
return builder.build();
|
return builder.build();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren