mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
b04b93b167
@ -405,6 +405,8 @@ public class BattleBanzaiGame extends Game
|
|||||||
|
|
||||||
public void refreshCounters(GameTeamColors teamColors)
|
public void refreshCounters(GameTeamColors teamColors)
|
||||||
{
|
{
|
||||||
|
if (!this.teams.containsKey(teamColors)) return;
|
||||||
|
|
||||||
int totalScore = this.teams.get(teamColors).getTotalScore();
|
int totalScore = this.teams.get(teamColors).getTotalScore();
|
||||||
|
|
||||||
THashMap<Integer, InteractionBattleBanzaiScoreboard> scoreBoards = this.room.getRoomSpecialTypes().getBattleBanzaiScoreboards(teamColors);
|
THashMap<Integer, InteractionBattleBanzaiScoreboard> scoreBoards = this.room.getRoomSpecialTypes().getBattleBanzaiScoreboards(teamColors);
|
||||||
|
@ -806,6 +806,8 @@ public class RoomUnit
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean canOverrideTile(RoomTile tile) {
|
public boolean canOverrideTile(RoomTile tile) {
|
||||||
|
if (tile == null || room == null || room.getLayout() == null) return false;
|
||||||
|
|
||||||
int tileIndex = (room.getLayout().getMapSizeY() * tile.y) + tile.x + 1;
|
int tileIndex = (room.getLayout().getMapSizeY() * tile.y) + tile.x + 1;
|
||||||
return this.overridableTiles.contains(tileIndex);
|
return this.overridableTiles.contains(tileIndex);
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ public class RedeemClothingEvent extends MessageHandler
|
|||||||
{
|
{
|
||||||
HabboItem item = this.client.getHabbo().getHabboInfo().getCurrentRoom().getHabboItem(itemId);
|
HabboItem item = this.client.getHabbo().getHabboInfo().getCurrentRoom().getHabboItem(itemId);
|
||||||
|
|
||||||
if(item.getUserId() == this.client.getHabbo().getHabboInfo().getId())
|
if(item != null && item.getUserId() == this.client.getHabbo().getHabboInfo().getId())
|
||||||
{
|
{
|
||||||
if(item instanceof InteractionClothing)
|
if(item instanceof InteractionClothing)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user