SPIGOT-4016: Fix clearing custom names
Dieser Commit ist enthalten in:
Ursprung
84676f363c
Commit
b6a757dec8
@ -527,12 +527,8 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setCustomName(String name) {
|
public void setCustomName(String name) {
|
||||||
if (name == null) {
|
|
||||||
name = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
// sane limit for name length
|
// sane limit for name length
|
||||||
if (name.length() > 256) {
|
if (name != null && name.length() > 256) {
|
||||||
name = name.substring(0, 256);
|
name = name.substring(0, 256);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren