Only truncate player name when sending spawn packet.

This commit is contained in:
Travis Watkins
2012-01-17 16:26:20 -06:00
committed by EvilSeph
parent 97ce5c4479
commit cf521b5a5c
2 changed files with 71 additions and 5 deletions

View File

@@ -248,11 +248,6 @@ public class EntityTrackerEntry {
entityitem.locZ = (double) packet21pickupspawn.d / 32.0D;
return packet21pickupspawn;
} else if (this.tracker instanceof EntityPlayer) {
// CraftBukkit start - limit name length to 16 characters
if (((EntityHuman) this.tracker).name.length() > 16) {
((EntityHuman) this.tracker).name = ((EntityHuman) this.tracker).name.substring(0, 16);
}
// CraftBukkit end
return new Packet20NamedEntitySpawn((EntityHuman) this.tracker);
} else {
if (this.tracker instanceof EntityMinecart) {