From 26a988fececb17cbbd090404ffafb01f5fc42c48 Mon Sep 17 00:00:00 2001 From: Cekis Date: Thu, 19 Jan 2017 16:53:59 +0000 Subject: [PATCH] Added more checks on mounting vehicles or mounts that may or may not be a pet mount. --- .../game/script/systems/vehicle_system/vehicle_base.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/systems/vehicle_system/vehicle_base.java b/sku.0/sys.server/compiled/game/script/systems/vehicle_system/vehicle_base.java index d006ad9a4..b8bb9054e 100755 --- a/sku.0/sys.server/compiled/game/script/systems/vehicle_system/vehicle_base.java +++ b/sku.0/sys.server/compiled/game/script/systems/vehicle_system/vehicle_base.java @@ -177,8 +177,7 @@ public class vehicle_base extends script.base_script { return SCRIPT_CONTINUE; } - boolean isMountedOn = isMountedOnCreatureQueried(self, player); - if ((item != menu_info_types.SERVER_VEHICLE_ENTER_EXIT) && (player != getMaster(self))) + if (item != menu_info_types.SERVER_VEHICLE_ENTER_EXIT && pet_lib.isPet(self) && pet_lib.hasMaster(self) && player != getMaster(self)) { return SCRIPT_CONTINUE; } @@ -202,7 +201,7 @@ public class vehicle_base extends script.base_script if (getMountsEnabled()) { debugServerConsoleMsg(player, "+++ pet . onObjectMenuSelect +++ getMountsEneabled returnted TRUE"); - if (isMountedOn) + if (isMountedOnCreatureQueried(self, player)) { queueCommand(player, (117012717), self, creature_name, COMMAND_PRIORITY_FRONT); }