mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-16 20:31:30 +01:00
fix
This commit is contained in:
parent
6481ea948d
commit
b35d5f05cd
@ -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