added debug enable setting

This commit is contained in:
Vitaliy Olkhin 2024-10-28 16:35:16 +05:00
parent 78963b458a
commit a8587b670a
3 changed files with 7 additions and 2 deletions

View File

@ -23,9 +23,12 @@ surface_effect.setHud = function(player)
id_mask = false,
id_status_chemical = false,
}
if surface_effect.debug then
minetest.log("action", "Load nplayer: " .. surface_effect.dump(surface_effect.nplayer))
end
end
end
--Состояние костюма химической защиты вывод в процентах.
surface_effect.getHazmatState = function(player)

View File

@ -1,6 +1,7 @@
su = {}
surface_effect = {
nplayer = {}
nplayer = {},
debug = minetest.settings:get_bool('surface_effect.debug') or false
}
local timer = 0

1
settingtypes.txt Normal file
View File

@ -0,0 +1 @@
surface_effect.debug (debug) bool false