13
0
geforkt von Mirrors/Paper

Limit mob names to 64 chars to avoid client crash. Fixes BUKKIT-3753

By: Travis Watkins <amaranth@ubuntu.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2013-03-16 08:31:03 -05:00
Ursprung afd0b4899b
Commit 7e0364660a

Datei anzeigen

@ -362,6 +362,11 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
name = ""; name = "";
} }
// Names cannot be more than 64 characters due to DataWatcher limitations
if (name.length() > 64) {
name = name.substring(0, 64);
}
getHandle().setCustomName(name); getHandle().setCustomName(name);
} }