mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Ensure the user removing a saddle is the horse's owner
This commit is contained in:
parent
a668cb9802
commit
5f5345c80c
@ -22,7 +22,7 @@ public class HorseRemoveSaddleEvent extends MessageHandler {
|
|||||||
Room room = this.client.getHabbo().getHabboInfo().getCurrentRoom();
|
Room room = this.client.getHabbo().getHabboInfo().getCurrentRoom();
|
||||||
Pet pet = room.getPet(this.packet.readInt());
|
Pet pet = room.getPet(this.packet.readInt());
|
||||||
|
|
||||||
if (pet == null || !(pet instanceof HorsePet)) return;
|
if (pet == null || !(pet instanceof HorsePet) || pet.getUserId() != this.client.getHabbo().getHabboInfo().getId()) return;
|
||||||
|
|
||||||
HorsePet horse = (HorsePet) pet;
|
HorsePet horse = (HorsePet) pet;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user