mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
optimized statement
This commit is contained in:
parent
84f4760349
commit
6ebfc66cda
@ -13,9 +13,9 @@ public class ModToolChangeRoomSettingsEvent extends MessageHandler {
|
|||||||
Room room = Emulator.getGameEnvironment().getRoomManager().getRoom(this.packet.readInt());
|
Room room = Emulator.getGameEnvironment().getRoomManager().getRoom(this.packet.readInt());
|
||||||
|
|
||||||
if (room != null) {
|
if (room != null) {
|
||||||
boolean lockDoor = this.packet.readInt() == 1;
|
final boolean lockDoor = this.packet.readInt() == 1;
|
||||||
boolean changeTitle = this.packet.readInt() == 1;
|
final boolean changeTitle = this.packet.readInt() == 1;
|
||||||
boolean kickUsers = this.packet.readInt() == 1;
|
final boolean kickUsers = this.packet.readInt() == 1;
|
||||||
|
|
||||||
Emulator.getGameEnvironment().getModToolManager().roomAction(room, this.client.getHabbo(), kickUsers, lockDoor, changeTitle);
|
Emulator.getGameEnvironment().getModToolManager().roomAction(room, this.client.getHabbo(), kickUsers, lockDoor, changeTitle);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user