Skip to content

Commit

Permalink
minetest. to core.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui914 authored and est31 committed Oct 31, 2015
1 parent b6dfae0 commit 482c4d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion builtin/game/chatcommands.lua
Expand Up @@ -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)."
Expand Down
2 changes: 1 addition & 1 deletion 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

Expand Down
2 changes: 1 addition & 1 deletion builtin/mainmenu/tab_texturepacks.lua
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 482c4d6

Please sign in to comment.