From 6379ecaa8cac6d39bcb75e82cfb6f7f4a002f9cf Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 6 Apr 2020 13:04:38 +1200 Subject: [PATCH] Fix painting error on spawn --- .../utilities/packets/packethandlers/PacketHandlerSpawn.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java index 421abeb1..c9a81c61 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java @@ -139,7 +139,7 @@ public class PacketHandlerSpawn implements IPacketHandler { int id = ((MiscDisguise) disguise).getData(); - mods.write(4, ReflectionManager.getEnumArt(Art.values()[id])); + mods.write(4, NmsVersion.v1_13.isSupported() ? id : ReflectionManager.getEnumArt(Art.values()[id])); // Make the teleport packet to make it visible.. PacketContainer teleportPainting = new PacketContainer(PacketType.Play.Server.ENTITY_TELEPORT);