From 6ebfc66cdabff4875dd830ee37960db4e7c5089d Mon Sep 17 00:00:00 2001 From: xjoao Date: Sun, 24 May 2020 12:50:42 -0400 Subject: [PATCH] optimized statement --- .../incoming/modtool/ModToolChangeRoomSettingsEvent.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/eu/habbo/messages/incoming/modtool/ModToolChangeRoomSettingsEvent.java b/src/main/java/com/eu/habbo/messages/incoming/modtool/ModToolChangeRoomSettingsEvent.java index 2a325246..a84022df 100644 --- a/src/main/java/com/eu/habbo/messages/incoming/modtool/ModToolChangeRoomSettingsEvent.java +++ b/src/main/java/com/eu/habbo/messages/incoming/modtool/ModToolChangeRoomSettingsEvent.java @@ -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); }