Merge branch 'patch-28' into 'dev'

optimized statement

See merge request morningstar/Arcturus-Community!204
This commit is contained in:
Mike 2020-06-01 09:33:18 -04:00
commit f6058890ed

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);
}