Fix tablist

This commit is contained in:
fullwall 2014-11-30 14:19:40 +08:00
parent 15efc9f838
commit 7739e5df21
2 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ public class NPCCommands {
EntityType type = EntityType.PLAYER; EntityType type = EntityType.PLAYER;
if (args.hasValueFlag("type")) { if (args.hasValueFlag("type")) {
String inputType = args.getFlag("type").toUpperCase(); String inputType = args.getFlag("type");
type = Util.matchEntityType(inputType); type = Util.matchEntityType(inputType);
if (type == null) { if (type == null) {
throw new CommandException(Messaging.tr(Messages.NPC_CREATE_INVALID_MOBTYPE, inputType)); throw new CommandException(Messaging.tr(Messages.NPC_CREATE_INVALID_MOBTYPE, inputType));

View File

@ -299,7 +299,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder {
break; break;
} }
} }
// NMS.sendToOnline(getListPacket(getBukkitEntity(), true)); NMS.sendToOnline(getListPacket(getBukkitEntity(), true));
if (otherOnline != null) { if (otherOnline != null) {
NMS.sendToOnline(getListPacket(otherOnline, false)); NMS.sendToOnline(getListPacket(otherOnline, false));
} }