Fix a legacy setting support

This commit is contained in:
HybridDog 2019-01-05 13:26:29 +01:00
parent fc89b2d2b4
commit 6b7ed8e7ca

@ -1,5 +1,4 @@
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"))
if minetest.settings:get_bool("item_drop.enable_item_pickup") ~= false and 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
@ -9,7 +8,8 @@ minetest.settings:get_bool("enable_item_pickup") ~= false then
local pickup_particle = local pickup_particle =
minetest.settings:get_bool("item_drop.pickup_particle") ~= false minetest.settings:get_bool("item_drop.pickup_particle") ~= false
local pickup_radius = tonumber( local pickup_radius = tonumber(
minetest.settings:get("item_drop.pickup_radius")) or 0.75 minetest.settings:get("item_drop.pickup_radius")) or
tonumber(minetest.settings:get("item_pickup_radius")) or 0.75
local magnet_radius = tonumber( local magnet_radius = tonumber(
minetest.settings:get("item_drop.magnet_radius")) or -1 minetest.settings:get("item_drop.magnet_radius")) or -1
local magnet_time = tonumber( local magnet_time = tonumber(