From 10824667963a78f8f0d098b233ef2badff985f69 Mon Sep 17 00:00:00 2001 From: Zaoqi Date: Sun, 29 Dec 2019 19:28:30 +0800 Subject: [PATCH] Rename `core` to `minetest` (#2552) --- .luacheckrc | 2 +- mods/game_commands/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 459912f1..be8e4bbf 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -3,7 +3,7 @@ allow_defined_top = true read_globals = { "DIR_DELIM", - "minetest", "core", + "minetest", "dump", "vector", "VoxelManip", "VoxelArea", diff --git a/mods/game_commands/init.lua b/mods/game_commands/init.lua index 139a879c..e038be18 100644 --- a/mods/game_commands/init.lua +++ b/mods/game_commands/init.lua @@ -13,7 +13,7 @@ minetest.register_chatcommand("killme", { player:set_hp(0) return true else - for _, callback in pairs(core.registered_on_respawnplayers) do + for _, callback in pairs(minetest.registered_on_respawnplayers) do if callback(player) then return true end -- 2.25.1