Unnecessary event cancellations #2

Closed
opened 2026-06-27 10:16:59 +00:00 by ThePindabaas · 1 comment
Member

When we check for isLocationIgnored, we not just simply return from the listener, but also cancel the event.

We should remove the event cancellation and only do return in all of these cases.

We need to look for all occurrences of this code:

        if (isLocationIgnored(x, y, z, worldName)) {
            event.setCancelled(true);
            return;
        }
When we check for `isLocationIgnored`, we not just simply return from the listener, but also cancel the event. We should remove the event cancellation and only do `return` in all of these cases. We need to look for all occurrences of this code: ```java if (isLocationIgnored(x, y, z, worldName)) { event.setCancelled(true); return; } ```
Kleedje30 was assigned by ThePindabaas 2026-06-27 10:19:24 +00:00
Member

is fixed :3

is fixed :3
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ArdakazMC/GriefAlert#2
No description provided.