Skip to content

Commit

Permalink
Fix potential crash when adding player to rank (#144)
Browse files Browse the repository at this point in the history
Signed-off-by: Lyfts <127234178+Lyfts@users.noreply.github.com>
  • Loading branch information
Lyfts authored Dec 7, 2024
1 parent 9bcd7c7 commit 126dc99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/serverutils/client/gui/ranks/RankInst.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class RankInst extends FinalIDObject {

public static final DataIn.Deserializer<RankInst> DESERIALIZER = data -> {
RankInst inst = new RankInst(data.readString());
inst.parents = data.readCollection(DataIn.STRING);
inst.parents = new HashSet<>(data.readCollection(DataIn.STRING));
inst.player = data.readString();
inst.group = ConfigGroup.DESERIALIZER.read(data);
return inst;
Expand Down

0 comments on commit 126dc99

Please sign in to comment.