mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-28 15:17:43 +02:00
fix
This commit is contained in:
parent
4956690096
commit
8314fb58db
@ -99,7 +99,6 @@ public class EventListen implements Listener {
|
||||
return;
|
||||
}
|
||||
}
|
||||
npc.openInventory(player);
|
||||
if (npc.getCharacter() != null)
|
||||
npc.getCharacter().onRightClick(npc, player);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user