From: Zaoqi Date: Sun, 29 Dec 2019 11:28:30 +0000 (+0800) Subject: Rename `core` to `minetest` (#2552) X-Git-Tag: 5.2.0~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=10824667963a78f8f0d098b233ef2badff985f69;p=oweals%2Fminetest_game.git Rename `core` to `minetest` (#2552) --- 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