mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
yay light purple item name
This commit is contained in:
parent
9656f95233
commit
94742db0fb
1 changed files with 5 additions and 3 deletions
|
|
@ -49,9 +49,11 @@ public class DebugStickItem extends Item {
|
|||
nbt.putList("ench", NbtType.COMPOUND, new ArrayList<>());
|
||||
}
|
||||
|
||||
// Custom name
|
||||
if (builder.getCustomName() == null) {
|
||||
builder.setCustomName(ChatColor.DARK_PURPLE + MinecraftLocale.getLocaleString("item.minecraft.debug_stick", session.locale()));
|
||||
// Only make the name pink - WHICH IS DONE CLIENT SIDE o.o - if no custom name exists
|
||||
String translation = 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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue