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

View File

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

1
settingtypes.txt Normal file
View File

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