Restrict block break if condition (#10)

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 06d73716a0

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 (parseResult.getActionId() == 0) {
if (parseResult.getActionId() == 0 && !parseResult.isRolledBack()) {
break;
}
}