mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 11:53:46 +01:00
Add debug field: active event counter
to verify it doesn't memleak
This commit is contained in:
parent
94057aa7e5
commit
e5515ed119
@ -131,6 +131,13 @@ end
|
||||
|
||||
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",{
|
||||
privs = {debug = true},
|
||||
description = "Debug command to start events",
|
||||
|
@ -1,3 +1,3 @@
|
||||
name = mcl_events
|
||||
author = cora
|
||||
depends = mcl_mobs,mcl_bossbars
|
||||
depends = mcl_mobs,mcl_bossbars, mcl_info
|
||||
|
Loading…
Reference in New Issue
Block a user