From 3165a6f77682247f3b762b1867503105be835f0d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 15 Aug 2022 22:52:50 +1200 Subject: [PATCH] Fix an error for item frames --- .../utilities/packets/packethandlers/PacketHandlerSpawn.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java index 1a1d88eb..b44ab48e 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java @@ -409,9 +409,9 @@ public class PacketHandlerSpawn implements IPacketHandler { if (disguise.getType() == DisguiseType.ITEM_FRAME) { if (data % 2 == 0) { - spawnEntity.getModifier().write(4, loc.getZ() + (data == 0 ? -1 : 1)); + spawnEntity.getDoubles().write(2, loc.getZ() + (data == 0 ? -1 : 1)); } else { - spawnEntity.getModifier().write(2, loc.getX() + (data == 3 ? -1 : 1)); + spawnEntity.getDoubles().write(0, loc.getX() + (data == 3 ? -1 : 1)); } } }