Fix NullPointerException in TagGame

This commit is contained in:
Alejandro 2019-05-27 13:41:28 +03:00
parent 540d401838
commit 381f62eb63

View File

@ -31,6 +31,8 @@ public abstract class TagGame extends Game {
@EventHandler
public static void onUserLookAtPoint(RoomUnitLookAtPointEvent event) {
if (event.room == null || event.roomUnit == null || event.location == null) return;
if (RoomLayout.tilesAdjecent(event.roomUnit.getCurrentLocation(), event.location)) {
Habbo habbo = event.room.getHabbo(event.roomUnit);