From c52a5e1d88134f1714861e4ff8b2069e54a54419 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 29 Sep 2024 15:48:35 +0100 Subject: [PATCH] fix: prune event always cancelled after fire --- .../java/net/william278/huskclaims/event/EventDispatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/net/william278/huskclaims/event/EventDispatcher.java b/common/src/main/java/net/william278/huskclaims/event/EventDispatcher.java index fc0197f..181ba1c 100644 --- a/common/src/main/java/net/william278/huskclaims/event/EventDispatcher.java +++ b/common/src/main/java/net/william278/huskclaims/event/EventDispatcher.java @@ -172,7 +172,7 @@ default void fireClaimMakePublicEvent(@NotNull OnlineUser user, @NotNull Claim c default Optional fireIsCancelledClaimWorldPruneEvent(@NotNull ClaimWorld world, @NotNull Map userMap) { final ClaimWorldPruneEvent event = getClaimWorldPruneEvent(world, userMap); - return fireIsCancelled(event) ? Optional.of(event) : Optional.empty(); + return !fireIsCancelled(event) ? Optional.of(event) : Optional.empty(); } @NotNull