geforkt von Mirrors/Paper
Just throw section signs into components a la Mojang
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
1ca1c1cbfd
Commit
2e7d945edc
@ -49,6 +49,7 @@ import java.util.HashSet;
|
|||||||
import java.util.Set;
|
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.NBTCompressedStreamTools;
|
import net.minecraft.server.NBTCompressedStreamTools;
|
||||||
import org.apache.commons.codec.binary.Base64;
|
import org.apache.commons.codec.binary.Base64;
|
||||||
|
|
||||||
@ -565,7 +566,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final void setDisplayName(String name) {
|
public final void setDisplayName(String name) {
|
||||||
this.displayName = CraftChatMessage.fromStringOrNull(name);
|
this.displayName = new ChatComponentText(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasDisplayName() {
|
public boolean hasDisplayName() {
|
||||||
@ -579,7 +580,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setLocalizedName(String name) {
|
public void setLocalizedName(String name) {
|
||||||
this.locName = CraftChatMessage.fromStringOrNull(name);
|
this.locName = new ChatComponentText(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren