mirror of
https://github.com/joe7575/lumberjack.git
synced 2024-07-04 15:05:19 +02:00
Use settings object instead of setting_* methods
This commit is contained in:
parent
43cf33698a
commit
874f262e8a
2
init.lua
2
init.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user