summaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
authorJoachim Stolberg <joe.stolberg@gmx.de>2017-07-11 20:15:18 +0200
committerJoachim Stolberg <joe.stolberg@gmx.de>2017-07-11 20:15:18 +0200
commit697010028115f623cf3329413de8c789dfba7918 (patch)
tree4db7e38bbb9db12e610f06541986a70ec8d0ffb5 /config.lua
parentbcc049cb65ac41597519337814ae76b2f9511a27 (diff)
v0.06: free space check bug fix, settingtypes added
Diffstat (limited to 'config.lua')
-rw-r--r--config.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/config.lua b/config.lua
index 631261e..df561da 100644
--- a/config.lua
+++ b/config.lua
@@ -1,14 +1,14 @@
-- Maximum crane height in blocks (12..n)
-towercrane.max_height = 24
+towercrane.max_height = tonumber(minetest.setting_get("towercrane_max_height")) or 24
-- Maximum crane width in blocks (12..n)
-towercrane.max_width = 24
+towercrane.max_width = tonumber(minetest.setting_get("towercrane_max_width")) or 24
-- Crane rope lenght in block (max_height .. max_height+x)
-towercrane.rope_length = 24
+towercrane.rope_length = tonumber(minetest.setting_get("towercrane_rope_length")) or 24
-- Gain factor for the crane sound (0.0 to 1)
-towercrane.gain = 1
+towercrane.gain = tonumber(minetest.setting_get("towercrane_gain")) or 1
-- Recipe available (true/false)
-towercrane.recipe = true
+towercrane.recipe = tonumber(minetest.setting_get("towercrane_recipe")) or true