diff options
Diffstat (limited to 'advtrains_interlocking/init.lua')
-rw-r--r-- | advtrains_interlocking/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/advtrains_interlocking/init.lua b/advtrains_interlocking/init.lua index a2f5882..0cdea8e 100644 --- a/advtrains_interlocking/init.lua +++ b/advtrains_interlocking/init.lua @@ -9,6 +9,16 @@ function advtrains.interlocking.sigd_equal(sigd, cmp) return vector.equals(sigd.p, cmp.p) and sigd.s==cmp.s end +-- Profiler boilerplate +if advprofiler then + advtrains.interlocking.profiler = advprofiler.new_profiler("advtrains_interlocking") +else + advtrains.interlocking.profiler = { + count=function() end, + enter=function() end, + leave=function() end, + } +end local modpath = minetest.get_modpath(minetest.get_current_modname()) .. DIR_DELIM |