Maintain order in editor users/groups collection

This commit is contained in:
Luck 2022-02-16 19:53:33 +00:00
parent 86d2523d33
commit 5c8b0a604e
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -39,7 +39,7 @@ import me.lucko.luckperms.common.sender.Sender;
import me.lucko.luckperms.common.webeditor.socket.WebEditorSocket; import me.lucko.luckperms.common.webeditor.socket.WebEditorSocket;
import java.io.IOException; import java.io.IOException;
import java.util.HashSet; import java.util.LinkedHashSet;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
import java.util.Set; import java.util.Set;
@ -79,8 +79,8 @@ public class WebEditorSession {
this.sender = sender; this.sender = sender;
this.cmdLabel = cmdLabel; this.cmdLabel = cmdLabel;
this.holders = new HashSet<>(initialRequest.getHolders().keySet()); this.holders = new LinkedHashSet<>(initialRequest.getHolders().keySet());
this.tracks = new HashSet<>(initialRequest.getTracks().keySet()); this.tracks = new LinkedHashSet<>(initialRequest.getTracks().keySet());
} }
public void open() { public void open() {