This commit is contained in:
aPunch 2012-02-12 09:54:25 -06:00
parent 6481ea948d
commit b35d5f05cd
2 changed files with 1 additions and 2 deletions

View File

@ -99,7 +99,6 @@ public class EventListen implements Listener {
return;
}
}
npc.openInventory(player);
if (npc.getCharacter() != null)
npc.getCharacter().onRightClick(npc, player);
}

View File

@ -76,7 +76,7 @@ public class NPCCommands {
create.addTrait(new Owner(player.getName()));
// Set the mob type
create.addTrait(new MobType(type == CreatureType.MONSTER ? "DEFAULT" : type.toString()));
create.addTrait(new MobType(type == null ? "DEFAULT" : type.toString()));
create.spawn(player.getLocation());
npcManager.selectNPC(player, create);