Skip to content

Commit 276ad43

Browse files
Merge branch 'IntellectualSites:main' into feature/weaving-death-place-flag
2 parents 5e0ee2e + 641e384 commit 276ad43

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Core/src/main/java/com/plotsquared/core/util/EventDispatcher.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,10 @@ public boolean checkPlayerBlockEvent(
371371
Location location, BlockType blockType, boolean notifyPerms
372372
) {
373373
PlotArea area = location.getPlotArea();
374-
assert area != null;
374+
// the interaction target location might be outside a plot area
375+
if (area == null) {
376+
return true;
377+
}
375378
if (!area.buildRangeContainsY(location.getY()) && !player.hasPermission(Permission.PERMISSION_ADMIN_BUILD_HEIGHT_LIMIT)) {
376379
player.sendMessage(
377380
TranslatableCaption.of("height.height_limit"),

0 commit comments

Comments
 (0)