Merge branch '487-modtool' into 'dev'

fix(ModToolRoomInfoComposer): fix disconnect in pub rooms

See merge request morningstar/Arcturus-Community!128
This commit is contained in:
Harmonic 2020-04-29 21:39:35 -04:00
commit 7d7ac20ff2

View File

@ -20,15 +20,13 @@ 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.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;
}
}