Skip to content

Commit

Permalink
fix(MatchManagerImpl): lower the match load listener priority
Browse files Browse the repository at this point in the history
Fixes an issue introduced in 0da8f1c where running filtered fill actions on match load using variable filters would result in the variable filter abstaining due to the world not being registered with the match manager.

Signed-off-by: TTtie <[email protected]>
  • Loading branch information
TTtie committed Nov 24, 2024
1 parent f02940c commit 485d9d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/tc/oc/pgm/match/MatchManagerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.jetbrains.annotations.Nullable;
import tc.oc.pgm.api.Config;
Expand Down Expand Up @@ -64,7 +65,7 @@ public MatchManagerImpl(Logger logger) {
this.destroyDelaySecs = delaySecs;
}

@EventHandler
@EventHandler(priority = EventPriority.LOWEST)
public void onMatchLoad(MatchLoadEvent event) {
final Match match = event.getMatch();

Expand Down

0 comments on commit 485d9d0

Please sign in to comment.