Use settings object instead of setting_* methods

This commit is contained in:
mazes 2020-09-20 16:08:36 +02:00
parent 43cf33698a
commit 874f262e8a

@ -24,7 +24,7 @@ lumberjack = {}
local MY_PARAM1_VAL = 7 -- to identify placed nodes
-- Necessary number of points for dug trees and placed sapling to get lumberjack privs
local LUMBERJACK_TREE_POINTS = tonumber(minetest.setting_get("lumberjack_points")) or 400
local LUMBERJACK_TREE_POINTS = tonumber(minetest.settings:get("lumberjack_points")) or 400
local LUMBERJACK_SAPL_POINTS = LUMBERJACK_TREE_POINTS / 6
local lTrees = {} -- List of registered tree items