From 806fba64480e635cdc2fdfeaca4ecf86a7f3201f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABlle=20Courant?= Date: Mon, 28 Oct 2024 11:02:59 +0100 Subject: [PATCH] Fix missing rename --- src/script/cpp_api/s_env.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/cpp_api/s_env.cpp b/src/script/cpp_api/s_env.cpp index 007622d52..dcc610c4f 100644 --- a/src/script/cpp_api/s_env.cpp +++ b/src/script/cpp_api/s_env.cpp @@ -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