mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Add debug field: active event counter
to verify it doesn't memleak
This commit is contained in:
parent
94057aa7e5
commit
e5515ed119
2 changed files with 8 additions and 1 deletions
|
@ -131,6 +131,13 @@ end
|
||||||
|
|
||||||
minetest.register_globalstep(check_events)
|
minetest.register_globalstep(check_events)
|
||||||
|
|
||||||
|
mcl_info.register_debug_field("Active Events",{
|
||||||
|
level = 4,
|
||||||
|
func = function(pl,pos)
|
||||||
|
return tostring(#active_events)
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_chatcommand("event_start",{
|
minetest.register_chatcommand("event_start",{
|
||||||
privs = {debug = true},
|
privs = {debug = true},
|
||||||
description = "Debug command to start events",
|
description = "Debug command to start events",
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
name = mcl_events
|
name = mcl_events
|
||||||
author = cora
|
author = cora
|
||||||
depends = mcl_mobs,mcl_bossbars
|
depends = mcl_mobs,mcl_bossbars, mcl_info
|
||||||
|
|
Loading…
Reference in a new issue