projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2583325
)
Rename `core` to `minetest` (#2552)
author
Zaoqi
<zaomir@outlook.com>
Sun, 29 Dec 2019 11:28:30 +0000
(19:28 +0800)
committer
sfan5
<sfan5@live.de>
Sun, 29 Dec 2019 11:28:30 +0000
(12:28 +0100)
.luacheckrc
patch
|
blob
|
history
mods/game_commands/init.lua
patch
|
blob
|
history
diff --git
a/.luacheckrc
b/.luacheckrc
index 459912f114d58dc2db456e4ac2f36b0491e51dd4..be8e4bbf051b49b93019a5b10f56f39492c20068 100644
(file)
--- 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 139a879c22fdb556da766d7efb2ec7db16f118a1..e038be181011a6231eddeb22717d78ab3a0a1a4d 100644
(file)
--- 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