Fixed issue for when NPC is spawned onJoin.

Skin was not showing because the PacketPlayOutPlayerInfo (remove) was sent too early. Delay this by a factor of 10 to prevent this.
This commit is contained in:
JitseB
2018-05-14 22:09:16 +02:00
parent 3120613f85
commit e0862fcfb6
9 changed files with 23 additions and 37 deletions
@@ -80,7 +80,7 @@ public class NPC_v1_8_R1 extends NPC {
hologram.spawn(player);
Bukkit.getScheduler().runTaskLater(plugin, () ->
playerConnection.sendPacket(packetPlayOutPlayerInfoRemove), 5);
playerConnection.sendPacket(packetPlayOutPlayerInfoRemove), 50);
}
@Override