diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-10-09 11:32:00 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-10-09 11:32:00 +0100 |
commit | ce0c3e8eb87452a92c46754ef49380b6f0131fb0 (patch) | |
tree | 2d473a9503813a64a24869d8c8ae2c7bcf08a5c1 /init.lua | |
parent | 4c2965a5248f60c07a73685813517ea4f8692233 (diff) |
updating to newer 0.4.16 functions
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,6 +7,7 @@ farming = {} farming.mod = "redo" +farming.version = "1.29" farming.path = minetest.get_modpath("farming") farming.select = { type = "fixed", @@ -29,7 +30,7 @@ farming.intllib = S -- Utility Function -local time_speed = tonumber(minetest.setting_get("time_speed")) or 72 +local time_speed = tonumber(minetest.settings:get("time_speed")) or 72 local SECS_PER_CYCLE = (time_speed > 0 and 24 * 60 * 60 / time_speed) or 0 local function clamp(x, min, max) return (x < min and min) or (x > max and max) or x |