From 14fcd77925f2246ad5e526038d21a521c141dd8d Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+DoctorMacc@users.noreply.github.com> Date: Mon, 25 May 2020 23:43:29 -0400 Subject: [PATCH] Fix entities stacking on top of each other when mounted (#660) The offset was being called but not properly saved to a variable. The check will also not apply if there is only one mounted entity. --- .../JavaEntitySetPassengersTranslator.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/translators/java/entity/JavaEntitySetPassengersTranslator.java b/connector/src/main/java/org/geysermc/connector/network/translators/java/entity/JavaEntitySetPassengersTranslator.java index ad0d0f9e..912ee832 100644 --- a/connector/src/main/java/org/geysermc/connector/network/translators/java/entity/JavaEntitySetPassengersTranslator.java +++ b/connector/src/main/java/org/geysermc/connector/network/translators/java/entity/JavaEntitySetPassengersTranslator.java @@ -82,7 +82,7 @@ public class JavaEntitySetPassengersTranslator extends PacketTranslator 1)); rider = false; } @@ -99,7 +99,7 @@ public class JavaEntitySetPassengersTranslator extends PacketTranslator 1)); } } @@ -111,8 +111,8 @@ public class JavaEntitySetPassengersTranslator extends PacketTranslator