fix(ModToolRoomInfoComposer): fix disconnect in pub rooms

This commit is contained in:
David Silva 2020-04-30 03:28:09 +02:00
parent 97b5ee397a
commit a3f9d66fa5

View File

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