From a3f9d66fa5a4f0a000ef0b0b424d6f1794accc5b Mon Sep 17 00:00:00 2001 From: David Silva Date: Thu, 30 Apr 2020 03:28:09 +0200 Subject: [PATCH] fix(ModToolRoomInfoComposer): fix disconnect in pub rooms --- .../outgoing/modtool/ModToolRoomInfoComposer.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/eu/habbo/messages/outgoing/modtool/ModToolRoomInfoComposer.java b/src/main/java/com/eu/habbo/messages/outgoing/modtool/ModToolRoomInfoComposer.java index 47792774..883b058d 100644 --- a/src/main/java/com/eu/habbo/messages/outgoing/modtool/ModToolRoomInfoComposer.java +++ b/src/main/java/com/eu/habbo/messages/outgoing/modtool/ModToolRoomInfoComposer.java @@ -20,14 +20,12 @@ public class ModToolRoomInfoComposer extends MessageComposer { this.response.appendBoolean(this.room.getHabbo(this.room.getOwnerId()) != null); this.response.appendInt(this.room.getOwnerId()); this.response.appendString(this.room.getOwnerName()); - this.response.appendBoolean(!this.room.isPublicRoom()); - if (!this.room.isPublicRoom()) { - this.response.appendString(this.room.getName()); - this.response.appendString(this.room.getDescription()); - this.response.appendInt(this.room.getTags().split(";").length); - for (int i = 0; i < this.room.getTags().split(";").length; i++) { - this.response.appendString(this.room.getTags().split(";")[i]); - } + this.response.appendBoolean(this.room.isPublicRoom()); + this.response.appendString(this.room.getName()); + this.response.appendString(this.room.getDescription()); + this.response.appendInt(this.room.getTags().split(";").length); + for (int i = 0; i < this.room.getTags().split(";").length; i++) { + this.response.appendString(this.room.getTags().split(";")[i]); } return this.response; }