mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 01:50:50 +01:00
fix(ModToolRoomInfoComposer): fix disconnect in pub rooms
This commit is contained in:
parent
97b5ee397a
commit
a3f9d66fa5
@ -20,14 +20,12 @@ public class ModToolRoomInfoComposer extends MessageComposer {
|
|||||||
this.response.appendBoolean(this.room.getHabbo(this.room.getOwnerId()) != null);
|
this.response.appendBoolean(this.room.getHabbo(this.room.getOwnerId()) != null);
|
||||||
this.response.appendInt(this.room.getOwnerId());
|
this.response.appendInt(this.room.getOwnerId());
|
||||||
this.response.appendString(this.room.getOwnerName());
|
this.response.appendString(this.room.getOwnerName());
|
||||||
this.response.appendBoolean(!this.room.isPublicRoom());
|
this.response.appendBoolean(this.room.isPublicRoom());
|
||||||
if (!this.room.isPublicRoom()) {
|
this.response.appendString(this.room.getName());
|
||||||
this.response.appendString(this.room.getName());
|
this.response.appendString(this.room.getDescription());
|
||||||
this.response.appendString(this.room.getDescription());
|
this.response.appendInt(this.room.getTags().split(";").length);
|
||||||
this.response.appendInt(this.room.getTags().split(";").length);
|
for (int i = 0; i < this.room.getTags().split(";").length; i++) {
|
||||||
for (int i = 0; i < this.room.getTags().split(";").length; i++) {
|
this.response.appendString(this.room.getTags().split(";")[i]);
|
||||||
this.response.appendString(this.room.getTags().split(";")[i]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return this.response;
|
return this.response;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user