mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Reset banzai tile state on pickup
This commit is contained in:
parent
44de2a81ec
commit
304907ddf1
@ -99,4 +99,23 @@ public class InteractionBattleBanzaiTile extends HabboItem {
|
||||
|
||||
return super.canStackAt(room, itemsAtLocation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPickUp(Room room) {
|
||||
super.onPickUp(room);
|
||||
|
||||
this.setExtradata("0");
|
||||
room.updateItem(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPlace(Room room) {
|
||||
super.onPlace(room);
|
||||
|
||||
BattleBanzaiGame game = (BattleBanzaiGame) room.getGame(BattleBanzaiGame.class);
|
||||
|
||||
if (game != null && game.getState() != GameState.IDLE) {
|
||||
this.setExtradata("1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ public class MoodLightSaveSettingsEvent extends MessageHandler {
|
||||
public void handle() throws Exception {
|
||||
Room room = this.client.getHabbo().getHabboInfo().getCurrentRoom();
|
||||
|
||||
if ((room.getGuildId() > 0 && room.guildRightLevel(this.client.getHabbo()) < 2) && !room.hasRights(this.client.getHabbo()))
|
||||
if ((room.getGuildId() <= 0 && room.guildRightLevel(this.client.getHabbo()) < 2) && !room.hasRights(this.client.getHabbo()))
|
||||
return;
|
||||
|
||||
int id = this.packet.readInt();
|
||||
|
Loading…
Reference in New Issue
Block a user