*Actually clean up

This commit is contained in:
dordsor21 2023-01-17 13:25:46 +00:00
parent b79537ebbc
commit 746028afbc
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -1288,7 +1288,7 @@ public class BlockEventListener implements Listener {
event.setCancelled(true);
break;
}
if (Permissions.hasPermission(pp, Permission.PERMISSION_ADMIN_BUILD_HEIGHT_LIMIT)) {
if (pp.hasPermission(Permission.PERMISSION_ADMIN_BUILD_HEIGHT_LIMIT)) {
continue;
}
if (currentLocation.getY() >= area.getMaxBuildHeight() || currentLocation.getY() < area.getMinBuildHeight()) {