add checks

This commit is contained in:
brenoepic 2022-12-03 16:02:35 -03:00
parent 7ed20f1386
commit b97aeca766
2 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,7 @@ public class BattleBanzaiGameTeam extends GameTeam {
Game game = habbo.getHabboInfo().getCurrentRoom().getGame(FreezeGame.class);
RoomUnit roomUnit = habbo.getRoomUnit();
Room room = roomUnit.getRoom();
if(room == null) return;
HabboItem topItem = room.getTopItemAt(roomUnit.getCurrentLocation().x, roomUnit.getCurrentLocation().y);
int nextEffectM = 0;
int nextEffectF = 0;

View File

@ -27,6 +27,7 @@ public class FreezeGameTeam extends GameTeam {
Game game = habbo.getHabboInfo().getCurrentRoom().getGame(FreezeGame.class);
RoomUnit roomUnit = habbo.getRoomUnit();
Room room = roomUnit.getRoom();
if(room == null) return;
HabboItem topItem = room.getTopItemAt(roomUnit.getCurrentLocation().x, roomUnit.getCurrentLocation().y);
int nextEffectM = 0;