diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-06-16 14:31:57 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-06-16 14:31:57 +0200 |
commit | 64220b7a3f5f3145f7e9457e0c0bfbb15e8c6c76 (patch) | |
tree | ba8073067ffd39028f87815cd9e0bb49dfdcaf23 /src | |
parent | 03045642429a5c68ca5c736991cd4e1ef0d99339 (diff) | |
download | skycraft-64220b7a3f5f3145f7e9457e0c0bfbb15e8c6c76.tar.xz |
Fixed Protection
Diffstat (limited to 'src')
-rw-r--r-- | src/main/plots.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/plots.lua b/src/main/plots.lua index 6ac909f..5631b04 100644 --- a/src/main/plots.lua +++ b/src/main/plots.lua @@ -173,7 +173,7 @@ end) local old_is_protected = minetest.is_protected function minetest.is_protected(pos, name) local plot = skycraft.get_plot_at_pos(pos) or {members = {}} - if pos.y > 5000 or (pos.y < 1000 and pos.y > -100) or (plot.owner ~= name and table.indexof(plot.members, name) == -1) then + if pos.y > 5000 or (pos.y < 1000 and pos.y > -100) or (pos.y > 1000 and plot.owner ~= name and table.indexof(plot.members, name) == -1) then return not minetest.check_player_privs(name, {protection_bypass = true}) else return old_is_protected(pos, name) |