minetest. to core.
authorRui914 <mrrst0914@gmail.com>
Fri, 30 Oct 2015 23:35:27 +0000 (08:35 +0900)
committerest31 <MTest31@outlook.com>
Sat, 31 Oct 2015 01:28:06 +0000 (02:28 +0100)
builtin/game/chatcommands.lua
builtin/game/init.lua
builtin/mainmenu/tab_texturepacks.lua

index 883aaef4becfc7afc2d8a635ac73d1e632bf90b8..5f9fcfc7bb4f61cae1a8d9c9701a55c17aae35ad 100644 (file)
@@ -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)."
index 3f82f85c7de54a504c692e1b2489069f2e37bc0a..72e3f009c5ccf140429ec1b2c21b929b6609d7b5 100644 (file)
@@ -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
 
index 5bbbe9b91837cd203fefa9a394438ef27e3ff5ca..5514d31f90ce55430066ae94bf41a268d659f021 100644 (file)
@@ -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 = ""