Fix 'minetest.setting_* functions are deprecated' issues

This commit is contained in:
Joachim Stolberg 2021-03-13 20:14:37 +01:00
parent e66f262888
commit 599b2c93c6

@ -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