Update for 0.4.16 settings syntax
parent
124158f64d
commit
001ad1183d
2
init.lua
2
init.lua
|
@ -1,6 +1,6 @@
|
||||||
-- Load setting
|
-- Load setting
|
||||||
local suffocation_damage = 10
|
local suffocation_damage = 10
|
||||||
local setting = minetest.setting_get("real_suffocation_damage")
|
local setting = minetest.settings:get("real_suffocation_damage")
|
||||||
if tonumber(setting) ~= nil then
|
if tonumber(setting) ~= nil then
|
||||||
suffocation_damage = tonumber(setting)
|
suffocation_damage = tonumber(setting)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue