Rename `core` to `minetest` (#2552)
authorZaoqi <zaomir@outlook.com>
Sun, 29 Dec 2019 11:28:30 +0000 (19:28 +0800)
committersfan5 <sfan5@live.de>
Sun, 29 Dec 2019 11:28:30 +0000 (12:28 +0100)
.luacheckrc
mods/game_commands/init.lua

index 459912f114d58dc2db456e4ac2f36b0491e51dd4..be8e4bbf051b49b93019a5b10f56f39492c20068 100644 (file)
@@ -3,7 +3,7 @@ allow_defined_top = true
 
 read_globals = {
        "DIR_DELIM",
-       "minetest", "core",
+       "minetest",
        "dump",
        "vector",
        "VoxelManip", "VoxelArea",
index 139a879c22fdb556da766d7efb2ec7db16f118a1..e038be181011a6231eddeb22717d78ab3a0a1a4d 100644 (file)
@@ -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