aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
authornumber Zero <silverunicorn2011@yandex.ru>2018-06-10 00:52:30 +0300
committersfan5 <sfan5@live.de>2018-06-10 10:34:13 +0200
commit90acb9b3a769fb949b7202b16e29418c945591a7 (patch)
tree70c40b6b11b8dea6e0c9b01fd728819fffd6c8d2 /builtin/game
parent2c0d8b25dd9a2e167bcf884c07ac4369f884091e (diff)
downloadminetest-90acb9b3a769fb949b7202b16e29418c945591a7.tar.gz
minetest-90acb9b3a769fb949b7202b16e29418c945591a7.tar.bz2
minetest-90acb9b3a769fb949b7202b16e29418c945591a7.zip
Fix typo (GH#7421)
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/register.lua2
1 files changed, 1 insertions, 1 deletions
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