Skip to content

Commit

Permalink
Merge branch 'IntellectualSites:main' into feature/weaving-death-plac…
Browse files Browse the repository at this point in the history
…e-flag
  • Loading branch information
RedstoneFuture authored Oct 16, 2024
2 parents 5e0ee2e + 641e384 commit 276ad43
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,10 @@ public boolean checkPlayerBlockEvent(
Location location, BlockType blockType, boolean notifyPerms
) {
PlotArea area = location.getPlotArea();
assert area != null;
// the interaction target location might be outside a plot area
if (area == null) {
return true;
}
if (!area.buildRangeContainsY(location.getY()) && !player.hasPermission(Permission.PERMISSION_ADMIN_BUILD_HEIGHT_LIMIT)) {
player.sendMessage(
TranslatableCaption.of("height.height_limit"),
Expand Down

0 comments on commit 276ad43

Please sign in to comment.