mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Do not show empty tags in navigator
This commit is contained in:
parent
6d23533abd
commit
79f7a8e434
@ -956,8 +956,10 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
||||
message.appendInt(this.score);
|
||||
message.appendInt(0);
|
||||
message.appendInt(this.category);
|
||||
message.appendInt(this.tags.split(";").length);
|
||||
for (String s : this.tags.split(";")) {
|
||||
|
||||
String[] tags = Arrays.stream(this.tags.split(";")).filter(t -> !t.isEmpty()).toArray(String[]::new);
|
||||
message.appendInt(tags.length);
|
||||
for (String s : tags) {
|
||||
message.appendString(s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user