aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-06-02 06:45:21 +0200
committerest31 <MTest31@outlook.com>2015-06-02 06:49:05 +0200
commitb8a8be9c86cf6249d7c1be1c01d27deb02bcb58c (patch)
tree2a44b576ccc2c8f9126906b48cb9353bb0a329a5 /builtin/game
parente479337c1a69c68e4e9b0e7d0a6cc96550039bb1 (diff)
downloadminetest-b8a8be9c86cf6249d7c1be1c01d27deb02bcb58c.tar.gz
minetest-b8a8be9c86cf6249d7c1be1c01d27deb02bcb58c.tar.bz2
minetest-b8a8be9c86cf6249d7c1be1c01d27deb02bcb58c.zip
Nicer time setting logging
Now logs ACTION[ServerThread]: player sets time to 6:03 instead of ACTION[ServerThread]: player sets time to 6:3
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/chatcommands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua
index fbc91ef01..d5d9c3d25 100644
--- a/builtin/game/chatcommands.lua
+++ b/builtin/game/chatcommands.lua
@@ -713,7 +713,7 @@ core.register_chatcommand("time", {
return false, "Invalid minute (must be between 0 and 59 inclusive)."
end
core.set_timeofday((hour * 60 + minute) / 1440)
- core.log("action", name .. " sets time to " .. hour .. ":" .. minute)
+ core.log("action", ("%s sets time to %d:%02d"):format(name, hour, minute))
return true, "Time of day changed."
end,
})