Fix missing rename

This commit is contained in:
Nathanaëlle Courant 2024-10-28 11:02:59 +01:00 committed by GitHub
parent 0d85e826f4
commit 806fba6448
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -164,8 +164,8 @@ void ScriptApiEnv::player_event(ServerActiveObject *player, const std::string &t
if (player == NULL) if (player == NULL)
return; return;
// Get minetest.registered_playerevents // Get core.registered_playerevents
lua_getglobal(L, "minetest"); lua_getglobal(L, "core");
lua_getfield(L, -1, "registered_playerevents"); lua_getfield(L, -1, "registered_playerevents");
// Call callbacks // Call callbacks