From 1c5e1cde61e6bfc017d0604357f33622f72df6ec Mon Sep 17 00:00:00 2001 From: Stankman Date: Mon, 17 Jul 2023 12:29:11 -0500 Subject: [PATCH] Dismounting Fix --- .../habbo/messages/incoming/rooms/pets/MountPetEvent.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/eu/habbo/messages/incoming/rooms/pets/MountPetEvent.java b/src/main/java/com/eu/habbo/messages/incoming/rooms/pets/MountPetEvent.java index 906e9dd0..fce34f12 100644 --- a/src/main/java/com/eu/habbo/messages/incoming/rooms/pets/MountPetEvent.java +++ b/src/main/java/com/eu/habbo/messages/incoming/rooms/pets/MountPetEvent.java @@ -30,7 +30,13 @@ public class MountPetEvent extends MessageHandler { //dismount if (habbo.getHabboInfo().getRiding() != null) { + boolean mountAgain = petId != habbo.getHabboInfo().getRiding().getId(); + habbo.getHabboInfo().dismountPet(room); + + if(!mountAgain) { + return; + } } // someone is already on it