From e67115106d7dc43b1e07323a4ad1124cd80b18d7 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 15 Sep 2020 22:13:21 +1200 Subject: [PATCH] Fix riding a player when disguised being weird --- .../disguise/utilities/DisguiseUtilities.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index 23139447..5be17ece 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -2186,12 +2186,12 @@ public class DisguiseUtilities { // Why the hell would he even need this. Meh. if (player.getVehicle() != null && player.getEntityId() > player.getVehicle().getEntityId()) { sendSelfPacket(player, - manager.createPacketConstructor(Server.ATTACH_ENTITY, 0, player, player.getVehicle()) - .createPacket(0, player, player.getVehicle())); + manager.createPacketConstructor(Server.ATTACH_ENTITY, player, player.getVehicle()) + .createPacket(player, player.getVehicle())); } else if (player.getPassenger() != null && player.getEntityId() > player.getPassenger().getEntityId()) { sendSelfPacket(player, - manager.createPacketConstructor(Server.ATTACH_ENTITY, 0, player.getPassenger(), player) - .createPacket(0, player.getPassenger(), player)); + manager.createPacketConstructor(Server.ATTACH_ENTITY, player.getPassenger(), player) + .createPacket(player.getPassenger(), player)); } if (NmsVersion.v1_16.isSupported()) {