Removed users with rights able to pull switches from far away

This commit is contained in:
Beny 2019-05-18 14:21:09 +01:00
parent bfefe5887c
commit b9e573ae34

View File

@ -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