Settings: Use new settings object

This commit is contained in:
paramat
2017-05-22 14:41:17 +01:00
parent e523c3a296
commit eec1c5a03b
9 changed files with 16 additions and 16 deletions

View File

@ -3,7 +3,7 @@ minetest.register_chatcommand("killme", {
func = function(name)
local player = minetest.get_player_by_name(name)
if player then
if minetest.setting_getbool("enable_damage") then
if minetest.settings:get_bool("enable_damage") then
player:set_hp(0)
return true
else