From a7cdd68cc98b6d2687105675f81db6f6e61ea2dc Mon Sep 17 00:00:00 2001 From: tacotexmex Date: Sun, 9 Jul 2017 18:38:44 +0200 Subject: [PATCH] Fix var bug --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 2c23512..4039869 100644 --- a/init.lua +++ b/init.lua @@ -1,11 +1,11 @@ local pickup = minetest.settings:get_bool("enable_item_pickup") -local drops = minetest.settings:get_bool("enable_item_drops") +local drop = minetest.settings:get_bool("enable_item_drop") local key = minetest.settings:get_bool("enable_item_pickup_key") local keytype = minetest.settings:get("item_pickup_keytype") or "Use" local gain = tonumber(minetest.settings:get("item_pickup_gain")) or 0.4 if pickup == nil then pickup = true end -if drops == nil then drops = true end +if drop == nil then drop = true end if key == nil then key = true end local key_press = false @@ -93,7 +93,7 @@ if pickup then end) end -if drops then +if drop then function minetest.handle_node_drops(pos, drops, digger) local inv if minetest.settings:get_bool("creative_mode") and digger and digger:is_player() then