SergiFerry / PlayerNPC

PlayerNPC API for Spigot 1.17+
https://www.spigotmc.org/resources/playernpc.93625/
26 stars 6 forks source link

Skinless NPCs when joining the first time #9

Open JAHMCR opened 2 years ago

JAHMCR commented 2 years ago

Hey! There is an issue with the skins when a player join for the first time after each server start, the players are not able to see the skins until they reconnect to the server.

I noticed this happen only to the NPCs in the line of sight, for example, the NPCs that are on the player's back are not visible until the player look at them (at that point the NPC is spawned and the skin is loaded correctly even on the first join).

Here is the detailed flow:

1) Start the server 2) Join the server (skins are not being displayed) 3) Disconnect from the server 4) Join the server again (skins are now visible)

Also happening when the server is restarted:

1) Restart the server 2) Join the server (skins are not visible again) 3) Disconnect from the server 4) Join the server again (skins are visible again)