Restrict block break if condition (#10)
All checks were successful
Build / Explore-Gitea-Actions (push) Successful in 51s

Co-authored-by: ThePindabaas <219561634+ThePindabaas@users.noreply.github.com>
Reviewed-on: #10
Reviewed-by: Ardakaz <ardakaz@duck.com>
Co-authored-by: ThePindabaas <thepindabaas@noreply.localhost>
Co-committed-by: ThePindabaas <thepindabaas@noreply.localhost>
This commit is contained in:
2026-07-13 15:12:00 +00:00
committed by Ardakaz
parent 55881630bc
commit 5064ac5903

View File

@@ -73,7 +73,7 @@ public class GriefAlert extends JavaPlugin implements Listener {
} }
} }
// If we see a break before a placement, stop (block is gone) // If we see a break before a placement, stop (block is gone)
if (parseResult.getActionId() == 0) { if (parseResult.getActionId() == 0 && !parseResult.isRolledBack()) {
break; break;
} }
} }