mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix missing rename
This commit is contained in:
committed by
GitHub
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
|
||||
|
Reference in New Issue
Block a user