]> git.lizzy.rs Git - skycraft.git/commitdiff
Fixed Protection
authorElias Fleckenstein <eliasfleckenstein@web.de>
Tue, 16 Jun 2020 12:31:57 +0000 (14:31 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Tue, 16 Jun 2020 12:31:57 +0000 (14:31 +0200)
src/main/plots.lua

index 6ac909fac6a845310b0c728658fac80c158a60c3..5631b043aaae8a9d7f32cbd4f065fa2606e97899 100644 (file)
@@ -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)