mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-12-22 22:02:26 +01:00
Fix var bug
This commit is contained in:
parent
6befa68ef8
commit
1f9ceb3eb3
6
init.lua
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user