mirror of
https://github.com/minetest-mods/crafting_bench.git
synced 2024-11-08 13:33:44 +01:00
Merge pull request #1 from AntumDeluge/settings
Replace deprecated method 'setting_get' with 'settings:get'
This commit is contained in:
commit
ca21489bc1
2
init.lua
2
init.lua
@ -11,7 +11,7 @@ if minetest.get_modpath("hopper") and hopper ~= nil and hopper.add_container ~=
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local crafting_rate = minetest.setting_get("crafting_bench_crafting_rate")
|
local crafting_rate = minetest.settings:get("crafting_bench_crafting_rate")
|
||||||
if crafting_rate == nil then crafting_rate = 5 end
|
if crafting_rate == nil then crafting_rate = 5 end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user