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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user