Skip to content

Commit

Permalink
fix potential crash when adding player to rank
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 committed Dec 6, 2024
1 parent 9bcd7c7 commit b222ecc
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 b222ecc

Please sign in to comment.