Skip to content

Commit

Permalink
Ensure reloadables are kept in order
Browse files Browse the repository at this point in the history
  • Loading branch information
xDec0de committed Nov 4, 2024
1 parent f1b8637 commit c2bd8b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared/src/main/java/net/codersky/mcutils/MCUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import java.io.File;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Objects;
import java.util.Set;
import java.util.UUID;
Expand All @@ -34,7 +35,7 @@
public abstract class MCUtils<P> {

private final P plugin;
protected final Set<Reloadable> reloadables = new HashSet<>();
protected final LinkedHashSet<Reloadable> reloadables = new LinkedHashSet<>();

public MCUtils(@NotNull P plugin) {
this.plugin = Objects.requireNonNull(plugin);
Expand Down

0 comments on commit c2bd8b5

Please sign in to comment.