mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 01:50:50 +01:00
Fix NullPointerException in InteractionSwitch
This commit is contained in:
parent
6f4105ceb9
commit
57b13360ce
@ -43,6 +43,9 @@ public class InteractionSwitch extends InteractionDefault
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(GameClient client, Room room, Object[] objects) throws Exception
|
public void onClick(GameClient client, Room room, Object[] objects) throws Exception
|
||||||
{
|
{
|
||||||
|
if(client == null)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!this.canToggle(client.getHabbo(), room))
|
if (!this.canToggle(client.getHabbo(), room))
|
||||||
{
|
{
|
||||||
RoomTile closestTile = null;
|
RoomTile closestTile = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user