From 4c6286dd65625357410d7f5d5f98a84cbc6ab6cb Mon Sep 17 00:00:00 2001 From: O O Date: Sat, 24 Dec 2022 10:37:58 +0000 Subject: [PATCH] Update InteractionInformationTerminal.java --- .../InteractionInformationTerminal.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionInformationTerminal.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionInformationTerminal.java index 205f817d..41bcdf9b 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionInformationTerminal.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionInformationTerminal.java @@ -24,10 +24,20 @@ public class InteractionInformationTerminal extends InteractionCustomValues { public InteractionInformationTerminal(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells, defaultValues); } + + @Override + public boolean canWalkOn(RoomUnit roomUnit, Room room, Object[] objects) { + return true; + } @Override - public void onWalk(RoomUnit roomUnit, Room room, Object[] objects) throws Exception { - super.onWalk(roomUnit, room, objects); + public boolean isWalkable() { + return this.getBaseItem().allowWalk(); + } + + @Override + public void onWalkOn(RoomUnit roomUnit, Room room, Object[] objects) throws Exception { + super.onWalkOn(roomUnit, room, objects); Habbo habbo = room.getHabbo(roomUnit); if (habbo != null && this.values.containsKey("internalLink")) {