From 15a399a26357cc9f6957e14cc75810caa7498cb9 Mon Sep 17 00:00:00 2001 From: DuckieTM Date: Tue, 2 Jul 2024 21:21:26 +0200 Subject: [PATCH] Fix: hide the magic walk tile Thanks to AlfreviD --- .../habbo/habbohotel/rooms/RoomManager.java | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java b/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java index c869d23..9daf5bb 100644 --- a/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java +++ b/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java @@ -14,6 +14,7 @@ import com.eu.habbo.habbohotel.games.tag.IceTagGame; import com.eu.habbo.habbohotel.games.tag.RollerskateGame; import com.eu.habbo.habbohotel.games.wired.WiredGame; import com.eu.habbo.habbohotel.guilds.Guild; +import com.eu.habbo.habbohotel.items.interactions.InteractionTileWalkMagic; import com.eu.habbo.habbohotel.items.interactions.InteractionWired; import com.eu.habbo.habbohotel.messenger.MessengerBuddy; import com.eu.habbo.habbohotel.navigation.NavigatorFilterComparator; @@ -804,20 +805,16 @@ public class RoomManager { } } - allFloorItems.forEach(new TObjectProcedure() { - @Override - public boolean execute(HabboItem object) { - if (room.isHideWired() && object instanceof InteractionWired) - return true; - - floorItems.add(object); - if (floorItems.size() == 250) { - habbo.getClient().sendResponse(new RoomFloorItemsComposer(room.getFurniOwnerNames(), floorItems)); - floorItems.clear(); - } - + allFloorItems.forEach(object -> { + if (room.isHideWired() && object instanceof InteractionWired | object instanceof InteractionTileWalkMagic) return true; + + floorItems.add(object); + if (floorItems.size() == 250) { + habbo.getClient().sendResponse(new RoomFloorItemsComposer(room.getFurniOwnerNames(), floorItems)); + floorItems.clear(); } + return true; }); habbo.getClient().sendResponse(new RoomFloorItemsComposer(room.getFurniOwnerNames(), floorItems));