diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-06-02 21:06:00 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-06-02 21:06:00 +0100 |
commit | 8161d03c39d7699a3e08ba53b664ff2101b21db9 (patch) | |
tree | aeb74402c3ee3cbf4f2a110b0d5ef6950d9372a4 | |
parent | f8eab51e67ecfc6a2fd66b88e8fdd0c6a9ef7c23 (diff) |
protector.drop feature removed, can easily be exploited using lag
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,7 +7,7 @@ protector = {} protector.mod = "redo" 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.hurt = tonumber(minetest.setting_get("protector_hurt")) or 0 protector.spawn = tonumber(minetest.setting_get("protector_spawn") @@ -307,7 +307,7 @@ function minetest.is_protected(pos, digger) }) end end - +--[[ -- drop tool/item if protection violated if protector.drop == true then @@ -332,7 +332,7 @@ function minetest.is_protected(pos, digger) end end end - +]] return true end |