From 8161d03c39d7699a3e08ba53b664ff2101b21db9 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 2 Jun 2017 21:06:00 +0100 Subject: protector.drop feature removed, can easily be exploited using lag --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 13956ac..676a561 100644 --- a/init.lua +++ b/init.lua @@ -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 -- cgit v1.2.3