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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user