fix: return on null plot on big boom (#4085)

- Fixes #4084
This commit is contained in:
Jordan 2023-06-22 19:09:31 +01:00 committed by GitHub
parent a53330e39b
commit f3c03348d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1116,6 +1116,7 @@ public class BlockEventListener implements Listener {
if (plot != null) {
plot.debug("Explosion was cancelled because explosion = false");
}
return;
}
event.blockList().removeIf(blox -> !plot.equals(area.getOwnedPlot(BukkitUtil.adapt(blox.getLocation()))));
}