mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
SPIGOT-4373: Item display colours are white by default
Should probably look at all this code at some point
This commit is contained in:
parent
6166843699
commit
94b8708aca
@ -50,6 +50,7 @@ import java.util.Set;
|
|||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import net.minecraft.server.ChatComponentText;
|
import net.minecraft.server.ChatComponentText;
|
||||||
|
import net.minecraft.server.EnumChatFormat;
|
||||||
import net.minecraft.server.NBTCompressedStreamTools;
|
import net.minecraft.server.NBTCompressedStreamTools;
|
||||||
import org.apache.commons.codec.binary.Base64;
|
import org.apache.commons.codec.binary.Base64;
|
||||||
|
|
||||||
@ -562,7 +563,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getDisplayName() {
|
public String getDisplayName() {
|
||||||
return CraftChatMessage.fromComponent(displayName);
|
return CraftChatMessage.fromComponent(displayName, EnumChatFormat.WHITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void setDisplayName(String name) {
|
public final void setDisplayName(String name) {
|
||||||
@ -575,7 +576,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getLocalizedName() {
|
public String getLocalizedName() {
|
||||||
return CraftChatMessage.fromComponent(locName);
|
return CraftChatMessage.fromComponent(locName, EnumChatFormat.WHITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user