From b9e573ae343f32dcd49f540a40ee9ada44ed7c90 Mon Sep 17 00:00:00 2001 From: Beny Date: Sat, 18 May 2019 14:21:09 +0100 Subject: [PATCH] Removed users with rights able to pull switches from far away --- .../habbo/habbohotel/items/interactions/InteractionSwitch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionSwitch.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionSwitch.java index 7072cb8c..e15bf896 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionSwitch.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionSwitch.java @@ -25,7 +25,7 @@ public class InteractionSwitch extends InteractionDefault @Override public boolean canToggle(Habbo habbo, Room room) { - return super.canToggle(habbo, room) || RoomLayout.tilesAdjecent(room.getLayout().getTile(this.getX(), this.getY()), habbo.getRoomUnit().getCurrentLocation()); + return RoomLayout.tilesAdjecent(room.getLayout().getTile(this.getX(), this.getY()), habbo.getRoomUnit().getCurrentLocation()); } @Override