aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui914 <mrrst0914@gmail.com>2015-10-31 08:35:27 +0900
committerest31 <MTest31@outlook.com>2015-10-31 02:28:06 +0100
commit482c4d69b094bddf5e6e10dfc996a972a628850a (patch)
treec082bdd029b3682b51d3f04d93b32dab317b05d5
parentb6dfae02215d7bd61e06ff1999ee3ecb0ec80b9e (diff)
downloadminetest-482c4d69b094bddf5e6e10dfc996a972a628850a.tar.gz
minetest-482c4d69b094bddf5e6e10dfc996a972a628850a.tar.bz2
minetest-482c4d69b094bddf5e6e10dfc996a972a628850a.zip
minetest. to core.
-rw-r--r--builtin/game/chatcommands.lua2
-rw-r--r--builtin/game/init.lua2
-rw-r--r--builtin/mainmenu/tab_texturepacks.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua
index 883aaef4b..5f9fcfc7b 100644
--- a/builtin/game/chatcommands.lua
+++ b/builtin/game/chatcommands.lua
@@ -710,7 +710,7 @@ core.register_chatcommand("time", {
local hour = (current_time - minutes) / 60
return true, ("Current time is %d:%02d"):format(hour, minutes)
end
- local player_privs = minetest.get_player_privs(name)
+ local player_privs = core.get_player_privs(name)
if not player_privs.settime then
return false, "You don't have permission to run this command " ..
"(missing privilege: settime)."
diff --git a/builtin/game/init.lua b/builtin/game/init.lua
index 3f82f85c7..72e3f009c 100644
--- a/builtin/game/init.lua
+++ b/builtin/game/init.lua
@@ -1,5 +1,5 @@
-local scriptpath = minetest.get_builtin_path()..DIR_DELIM
+local scriptpath = core.get_builtin_path()..DIR_DELIM
local commonpath = scriptpath.."common"..DIR_DELIM
local gamepath = scriptpath.."game"..DIR_DELIM
diff --git a/builtin/mainmenu/tab_texturepacks.lua b/builtin/mainmenu/tab_texturepacks.lua
index 5bbbe9b91..5514d31f9 100644
--- a/builtin/mainmenu/tab_texturepacks.lua
+++ b/builtin/mainmenu/tab_texturepacks.lua
@@ -68,7 +68,7 @@ local function get_formspec(tabview, name, tabdata)
if not file_exists(infofile) then
infofile = current_texture_path ..DIR_DELIM.."info.txt"
if file_exists(infofile) then
- minetest.log("info.txt is depreciated. description.txt should be used instead.");
+ core.log("info.txt is depreciated. description.txt should be used instead.");
end
end
local infotext = ""