This commit is contained in:
fullwall 2016-01-01 10:55:01 +08:00
parent 300ff53dfd
commit 9c93897e2b

View File

@ -1207,7 +1207,7 @@ public class NPCCommands {
NPCCommandSelector.Callback callback = new NPCCommandSelector.Callback() {
@Override
public void run(NPC toSelect) throws CommandException {
if (toSelect == null || !toSelect.getTrait(Spawned.class).shouldSpawn())
if (toSelect == null)
throw new CommandException(Messages.NPC_NOT_FOUND);
if (npc != null && toSelect.getId() == npc.getId())
throw new CommandException(Messages.NPC_ALREADY_SELECTED);