From cb2faf298e4a742214045e5b87988c1d7f47d846 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 20 Jun 2017 16:52:24 +0200 Subject: [PATCH] Update for 0.4.16 settings syntax --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 6c48c22..7155484 100644 --- a/init.lua +++ b/init.lua @@ -834,7 +834,7 @@ minetest.register_chatcommand("lplant", if not tree_id or not p.x or not p.y or not p.z then return false, "Invalid usage, see /help lplant." end - local lm = tonumber(minetest.setting_get("map_generation_limit") or 31000) + local lm = tonumber(minetest.settings:get("map_generation_limit") or 31000) if p.x < -lm or p.x > lm or p.y < -lm or p.y > lm or p.z < -lm or p.z > lm then return false, "Cannot plant tree out of map bounds!" end