mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 01:50:50 +01:00
Removed users with rights able to pull switches from far away
This commit is contained in:
parent
bfefe5887c
commit
b9e573ae34
@ -25,7 +25,7 @@ public class InteractionSwitch extends InteractionDefault
|
|||||||
@Override
|
@Override
|
||||||
public boolean canToggle(Habbo habbo, Room room)
|
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
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user