From b222eccb5d3ab7b48759adef3521bd025382c46f Mon Sep 17 00:00:00 2001 From: Lyfts <127234178+Lyfts@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:31:08 +0100 Subject: [PATCH] fix potential crash when adding player to rank Signed-off-by: Lyfts <127234178+Lyfts@users.noreply.github.com> --- src/main/java/serverutils/client/gui/ranks/RankInst.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/serverutils/client/gui/ranks/RankInst.java b/src/main/java/serverutils/client/gui/ranks/RankInst.java index 6713e757..e834012b 100644 --- a/src/main/java/serverutils/client/gui/ranks/RankInst.java +++ b/src/main/java/serverutils/client/gui/ranks/RankInst.java @@ -19,7 +19,7 @@ public class RankInst extends FinalIDObject { public static final DataIn.Deserializer 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;