protector.drop feature removed, can easily be exploited using lag
This commit is contained in:
parent
f8eab51e67
commit
8161d03c39
1 changed files with 3 additions and 3 deletions
6
init.lua
6
init.lua
|
|
@ -7,7 +7,7 @@
|
||||||
protector = {}
|
protector = {}
|
||||||
protector.mod = "redo"
|
protector.mod = "redo"
|
||||||
protector.radius = tonumber(minetest.setting_get("protector_radius")) or 5
|
protector.radius = tonumber(minetest.setting_get("protector_radius")) or 5
|
||||||
protector.drop = minetest.setting_getbool("protector_drop") or false
|
--protector.drop = minetest.setting_getbool("protector_drop") or false
|
||||||
protector.flip = minetest.setting_getbool("protector_flip") or false
|
protector.flip = minetest.setting_getbool("protector_flip") or false
|
||||||
protector.hurt = tonumber(minetest.setting_get("protector_hurt")) or 0
|
protector.hurt = tonumber(minetest.setting_get("protector_hurt")) or 0
|
||||||
protector.spawn = tonumber(minetest.setting_get("protector_spawn")
|
protector.spawn = tonumber(minetest.setting_get("protector_spawn")
|
||||||
|
|
@ -307,7 +307,7 @@ function minetest.is_protected(pos, digger)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
--[[
|
||||||
-- drop tool/item if protection violated
|
-- drop tool/item if protection violated
|
||||||
if protector.drop == true then
|
if protector.drop == true then
|
||||||
|
|
||||||
|
|
@ -332,7 +332,7 @@ function minetest.is_protected(pos, digger)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
]]
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue