mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-06-29 14:50:41 +02:00
Replace deprecated methods: (#179)
- 'setting_get' with 'settings:get' - 'setting_getbool' with 'settings:get_bool'
This commit is contained in:
committed by
Vanessa Ezekowitz
parent
7d70d79cda
commit
69d994a2a2
@ -30,7 +30,7 @@ local settings = {
|
||||
for name, value in pairs(settings) do
|
||||
local setting_type = type(value)
|
||||
if setting_type == "boolean" then
|
||||
pipeworks[name] = minetest.setting_getbool(prefix..name)
|
||||
pipeworks[name] = minetest.settings:get_bool(prefix..name)
|
||||
if pipeworks[name] == nil then
|
||||
pipeworks[name] = value
|
||||
end
|
||||
|
Reference in New Issue
Block a user