From a11544ffdcdecd86218d0f3a80a60902947f4262 Mon Sep 17 00:00:00 2001 From: brenoepic <59066707+brenoepics@users.noreply.github.com> Date: Mon, 11 Apr 2022 16:13:29 -0300 Subject: [PATCH] Update InteractionPetToy.java --- .../items/interactions/pets/InteractionPetToy.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionPetToy.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionPetToy.java index d33e5cc7..4925e4fe 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionPetToy.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionPetToy.java @@ -28,6 +28,9 @@ public class InteractionPetToy extends InteractionDefault { public void onClick(GameClient client, Room room, Object[] objects) {} @Override public void onMove(Room room, RoomTile oldLocation, RoomTile newLocation) { + this.setExtradata("0"); + room.updateItem(this); + for (Pet pet : room.getPetsAt(oldLocation)) { pet.getRoomUnit().clearStatus(); pet.packetUpdate = true; @@ -35,6 +38,8 @@ public class InteractionPetToy extends InteractionDefault { } @Override public void onPickUp(Room room) { + this.setExtradata("0"); + for (Pet pet : room.getPetsOnItem(this)) { pet.getRoomUnit().clearStatus(); pet.packetUpdate = true; @@ -79,6 +84,8 @@ public class InteractionPetToy extends InteractionDefault { Pet pet = room.getPet(roomUnit); if (pet != null) { + this.setExtradata("0"); + room.updateItem(this); pet.getRoomUnit().clearStatus(); pet.packetUpdate = true; }