optimized statement

This commit is contained in:
xjoao 2020-05-24 12:50:42 -04:00
parent 84f4760349
commit 6ebfc66cda

View File

@ -13,9 +13,9 @@ public class ModToolChangeRoomSettingsEvent extends MessageHandler {
Room room = Emulator.getGameEnvironment().getRoomManager().getRoom(this.packet.readInt());
if (room != null) {
boolean lockDoor = this.packet.readInt() == 1;
boolean changeTitle = this.packet.readInt() == 1;
boolean kickUsers = this.packet.readInt() == 1;
final boolean lockDoor = this.packet.readInt() == 1;
final boolean changeTitle = this.packet.readInt() == 1;
final boolean kickUsers = this.packet.readInt() == 1;
Emulator.getGameEnvironment().getModToolManager().roomAction(room, this.client.getHabbo(), kickUsers, lockDoor, changeTitle);
}