added debug enable setting
This commit is contained in:
parent
78963b458a
commit
a8587b670a
@ -23,7 +23,10 @@ surface_effect.setHud = function(player)
|
|||||||
id_mask = false,
|
id_mask = false,
|
||||||
id_status_chemical = false,
|
id_status_chemical = false,
|
||||||
}
|
}
|
||||||
minetest.log("action", "Load nplayer: " .. surface_effect.dump(surface_effect.nplayer))
|
|
||||||
|
if surface_effect.debug then
|
||||||
|
minetest.log("action", "Load nplayer: " .. surface_effect.dump(surface_effect.nplayer))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
3
init.lua
3
init.lua
@ -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
1
settingtypes.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
surface_effect.debug (debug) bool false
|
Loading…
Reference in New Issue
Block a user