Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 13:00:06 +01:00
Limit mob names to 64 chars to avoid client crash. Fixes BUKKIT-3753
Dieser Commit ist enthalten in:
Ursprung
4fa8c24e42
Commit
7466321212
@ -362,6 +362,11 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
||||
name = "";
|
||||
}
|
||||
|
||||
// Names cannot be more than 64 characters due to DataWatcher limitations
|
||||
if (name.length() > 64) {
|
||||
name = name.substring(0, 64);
|
||||
}
|
||||
|
||||
getHandle().setCustomName(name);
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren