forked from minetest-mods/item_drop
Fix a legacy setting support
This commit is contained in:
parent
02683056e5
commit
62dbd6bc0d
4
init.lua
4
init.lua
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user