mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-08-20 13:14:09 +02:00
Fix settings bug
This commit is contained in:
parent
3e6a731cab
commit
293fd77614
4
init.lua
4
init.lua
@ -1,7 +1,7 @@
|
|||||||
local load_time_start = minetest.get_us_time()
|
local load_time_start = minetest.get_us_time()
|
||||||
pickup_radius = tonumber(minetest.settings:get("item_pickup_radius"))
|
pickup_radius = tonumber(minetest.settings:get("item_pickup_radius"))
|
||||||
|
|
||||||
if minetest.settings:get_bool("item_drop.enable_item_pickup") ~= false or
|
if minetest.settings:get_bool("item_drop.enable_item_pickup") ~= false and
|
||||||
minetest.settings:get_bool("enable_item_pickup") ~= false then
|
minetest.settings:get_bool("enable_item_pickup") ~= false then
|
||||||
local pickup_gain = tonumber(
|
local pickup_gain = tonumber(
|
||||||
minetest.settings:get("item_drop.pickup_sound_gain")) or
|
minetest.settings:get("item_drop.pickup_sound_gain")) or
|
||||||
@ -245,7 +245,7 @@ minetest.settings:get_bool("enable_item_pickup") ~= false then
|
|||||||
minetest.after(3.0, pickup_step)
|
minetest.after(3.0, pickup_step)
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.settings:get_bool("item_drop.enable_item_drop") ~= false or
|
if minetest.settings:get_bool("item_drop.enable_item_drop") ~= false and
|
||||||
minetest.settings:get_bool("enable_item_drop") ~= false
|
minetest.settings:get_bool("enable_item_drop") ~= false
|
||||||
and not minetest.settings:get_bool("creative_mode") then
|
and not minetest.settings:get_bool("creative_mode") then
|
||||||
function minetest.handle_node_drops(pos, drops)
|
function minetest.handle_node_drops(pos, drops)
|
||||||
|
Loading…
Reference in New Issue
Block a user