diff --git a/config.lua b/config.lua index 0ee5296..1c756f0 100644 --- a/config.lua +++ b/config.lua @@ -11,13 +11,13 @@ -- Maximum crane height in blocks (8..n) -towercrane.max_height = tonumber(minetest.setting_get("towercrane_max_height")) or 32 +towercrane.max_height = tonumber(minetest.settings:get("towercrane_max_height")) or 32 -- Maximum crane width in blocks (8..n) -towercrane.max_width = tonumber(minetest.setting_get("towercrane_max_width")) or 32 +towercrane.max_width = tonumber(minetest.settings:get("towercrane_max_width")) or 32 -- Crane rope lenght in block (max_height .. max_height+x) -towercrane.rope_length = tonumber(minetest.setting_get("towercrane_rope_length")) or 40 +towercrane.rope_length = tonumber(minetest.settings:get("towercrane_rope_length")) or 40 -- Recipe available (true/false) -towercrane.recipe = tonumber(minetest.setting_get("towercrane_recipe")) or true +towercrane.recipe = tonumber(minetest.settings:get("towercrane_recipe")) or true