mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 23:26:45 +01:00
Do not check interactions outside plot areas
This commit is contained in:
parent
003898f6a7
commit
b1e33a92a9
@ -371,7 +371,10 @@ public class EventDispatcher {
|
||||
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"),
|
||||
|
Loading…
Reference in New Issue
Block a user