mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 06:32:23 +01:00
Fix missing rename
This commit is contained in:
parent
0d85e826f4
commit
806fba6448
@ -164,8 +164,8 @@ void ScriptApiEnv::player_event(ServerActiveObject *player, const std::string &t
|
||||
if (player == NULL)
|
||||
return;
|
||||
|
||||
// Get minetest.registered_playerevents
|
||||
lua_getglobal(L, "minetest");
|
||||
// Get core.registered_playerevents
|
||||
lua_getglobal(L, "core");
|
||||
lua_getfield(L, -1, "registered_playerevents");
|
||||
|
||||
// Call callbacks
|
||||
|
Loading…
Reference in New Issue
Block a user