JitseB / NPCLib

(Minecraft) NPCLib – Basic non-player character library.
MIT License
197 stars 49 forks source link

NPC Rejoin Disappearance #177

Open ItchyDitchy opened 2 years ago

ItchyDitchy commented 2 years ago

Describe the bug Create an NPC -> Rejoin -> It disappears (I also execute NPC#show(Player player) on player join)

NPCLib usage option 2

NPCLib JAR name npclib-plugin-2.12.1-SNAPSHOT.jar

Server version Paper version git-Paper-794 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)

To Reproduce On Join:

npc.show(event.getPlayer().asPlayer());

For Creation:

NPC npc = ItchyDitchyPlugin.getNPCLibrary().createNPC();
npc.setSkin(skin);
npc.setLocation(location);
npc.setText(new ArrayList<String>(Arrays.asList(robotName)));
npc.setItem(NPCSlot.HELMET, helmet);
npc.setItem(NPCSlot.CHESTPLATE, chestplate);
npc.setItem(NPCSlot.LEGGINGS, leggings);
npc.setItem(NPCSlot.BOOTS, boots);

Create NPC -> Leave -> Join -> It does not show anymore.

Expected behavior The NPC shows.

Screenshots n/a

Additional context n/a