#2413 Always use ArrayList for LimboPlayer groups to prevent issue with Gson

This commit is contained in:
ljacqu 2021-10-09 15:08:20 +02:00
parent a99daea5ce
commit 6be9cec16e
1 changed files with 2 additions and 1 deletions

View File

@ -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;