Update for 0.4.16 settings syntax

master
Wuzzy 2017-06-20 16:59:40 +02:00
parent 124158f64d
commit 001ad1183d
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
-- Load setting
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
suffocation_damage = tonumber(setting)
end