From: number Zero Date: Sat, 9 Jun 2018 21:52:30 +0000 (+0300) Subject: Fix typo (GH#7421) X-Git-Tag: 5.0.0~371 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=90acb9b3a769fb949b7202b16e29418c945591a7;p=oweals%2Fminetest.git Fix typo (GH#7421) --- diff --git a/builtin/game/register.lua b/builtin/game/register.lua index 6a7c4747f..3edab0471 100644 --- a/builtin/game/register.lua +++ b/builtin/game/register.lua @@ -445,7 +445,7 @@ end function core.run_priv_callbacks(name, priv, caller, method) local def = core.registered_privileges[priv] if not def or not def["on_" .. method] or - not def[priv]["on_" .. method](name, caller) then + not def["on_" .. method](name, caller) then for _, func in ipairs(core["registered_on_priv_" .. method]) do if not func(name, caller, priv) then break