We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e0ee2e + 641e384 commit 276ad43Copy full SHA for 276ad43
Core/src/main/java/com/plotsquared/core/util/EventDispatcher.java
@@ -371,7 +371,10 @@ public boolean checkPlayerBlockEvent(
371
Location location, BlockType blockType, boolean notifyPerms
372
) {
373
PlotArea area = location.getPlotArea();
374
- assert area != null;
+ // the interaction target location might be outside a plot area
375
+ if (area == null) {
376
+ return true;
377
+ }
378
if (!area.buildRangeContainsY(location.getY()) && !player.hasPermission(Permission.PERMISSION_ADMIN_BUILD_HEIGHT_LIMIT)) {
379
player.sendMessage(
380
TranslatableCaption.of("height.height_limit"),
0 commit comments