From 6be9cec16eee2d184a56309f4934c3728849616f Mon Sep 17 00:00:00 2001 From: ljacqu Date: Sat, 9 Oct 2021 15:08:20 +0200 Subject: [PATCH] #2413 Always use ArrayList for LimboPlayer groups to prevent issue with Gson --- src/main/java/fr/xephi/authme/data/limbo/LimboPlayer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/data/limbo/LimboPlayer.java b/src/main/java/fr/xephi/authme/data/limbo/LimboPlayer.java index d86f7a76..34e73196 100644 --- a/src/main/java/fr/xephi/authme/data/limbo/LimboPlayer.java +++ b/src/main/java/fr/xephi/authme/data/limbo/LimboPlayer.java @@ -4,6 +4,7 @@ import fr.xephi.authme.task.MessageTask; import org.bukkit.Location; import org.bukkit.scheduler.BukkitTask; +import java.util.ArrayList; import java.util.Collection; /** @@ -29,7 +30,7 @@ public class LimboPlayer { float flySpeed) { this.loc = loc; this.operator = operator; - this.groups = groups; + this.groups = new ArrayList<>(groups); // prevent bug #2413 this.canFly = fly; this.walkSpeed = walkSpeed; this.flySpeed = flySpeed;