From 63153e745743d2a839d03afa59032f369acd800e Mon Sep 17 00:00:00 2001 From: Sokomine Date: Mon, 11 Mar 2019 22:15:27 +0100 Subject: [PATCH] cottages_feldweg_mode is now a setting in minetest.conf --- nodes_feldweg.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nodes_feldweg.lua b/nodes_feldweg.lua index d81cc02..9205952 100644 --- a/nodes_feldweg.lua +++ b/nodes_feldweg.lua @@ -15,8 +15,14 @@ local S = cottages.S -- * flat: each node is a full node; junction, t-junction and corner are included -- * nodebox: like flat - except that each node has a nodebox that fits to that road node -- * mesh: like nodebox - except that it uses a nice roundish model -if( not( cottages_feldweg_mode )) then +local cottages_feldweg_mode = minetest.settings:get("cottages_feldweg_mode") +if( cottages_feldweg_mode ~= "mesh" + and cottages_feldweg_mode ~= "flat" + and cottages_feldweg_mode ~= "nodebox" + and cottages_feldweg_mode ~= "flat") then cottages_feldweg_mode = "mesh"; + -- add the setting to the minetest.conf so that the player can set it there + minetest.settings:set("cottages_feldweg_mode", "mesh") end local function register_recipes(include_end)