]> git.lizzy.rs Git - minetest.git/blobdiff - builtin/profiler/instrumentation.lua
Translated using Weblate (Lojban)
[minetest.git] / builtin / profiler / instrumentation.lua
index 2ab658bb22c3de68498ea70c05121f185b8c0ab5..6b951a2c2d57647b3068e531b27213a128566bfb 100644 (file)
@@ -117,7 +117,8 @@ end
 local function assert_can_be_called(func, func_name, level)
        if not can_be_called(func) then
                -- Then throw an *helpful* error, by pointing on our caller instead of us.
-               error(format("Invalid argument to %s. Expected function-like type instead of '%s'.", func_name, type(func)), level + 1)
+               error(format("Invalid argument to %s. Expected function-like type instead of '%s'.",
+                               func_name, type(func)), level + 1)
        end
 end
 
@@ -159,9 +160,10 @@ local function init()
                -- Simple iteration would ignore lookup via __index.
                local entity_instrumentation = {
                        "on_activate",
+                       "on_deactivate",
                        "on_step",
                        "on_punch",
-                       "rightclick",
+                       "on_rightclick",
                        "get_staticdata",
                }
                -- Wrap register_entity() to instrument them on registration.