mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01:00
add checks
This commit is contained in:
parent
7ed20f1386
commit
b97aeca766
@ -37,7 +37,7 @@ public class BattleBanzaiGameTeam extends GameTeam {
|
|||||||
Game game = habbo.getHabboInfo().getCurrentRoom().getGame(FreezeGame.class);
|
Game game = habbo.getHabboInfo().getCurrentRoom().getGame(FreezeGame.class);
|
||||||
RoomUnit roomUnit = habbo.getRoomUnit();
|
RoomUnit roomUnit = habbo.getRoomUnit();
|
||||||
Room room = roomUnit.getRoom();
|
Room room = roomUnit.getRoom();
|
||||||
|
if(room == null) return;
|
||||||
HabboItem topItem = room.getTopItemAt(roomUnit.getCurrentLocation().x, roomUnit.getCurrentLocation().y);
|
HabboItem topItem = room.getTopItemAt(roomUnit.getCurrentLocation().x, roomUnit.getCurrentLocation().y);
|
||||||
int nextEffectM = 0;
|
int nextEffectM = 0;
|
||||||
int nextEffectF = 0;
|
int nextEffectF = 0;
|
||||||
|
@ -27,6 +27,7 @@ public class FreezeGameTeam extends GameTeam {
|
|||||||
Game game = habbo.getHabboInfo().getCurrentRoom().getGame(FreezeGame.class);
|
Game game = habbo.getHabboInfo().getCurrentRoom().getGame(FreezeGame.class);
|
||||||
RoomUnit roomUnit = habbo.getRoomUnit();
|
RoomUnit roomUnit = habbo.getRoomUnit();
|
||||||
Room room = roomUnit.getRoom();
|
Room room = roomUnit.getRoom();
|
||||||
|
if(room == null) return;
|
||||||
|
|
||||||
HabboItem topItem = room.getTopItemAt(roomUnit.getCurrentLocation().x, roomUnit.getCurrentLocation().y);
|
HabboItem topItem = room.getTopItemAt(roomUnit.getCurrentLocation().x, roomUnit.getCurrentLocation().y);
|
||||||
int nextEffectM = 0;
|
int nextEffectM = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user