1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-09-16 09:16:22 +02:00

fixed chat log

This commit is contained in:
Valansch
2017-07-09 12:02:12 +02:00
parent 8946486e6a
commit 0bc551b10a

View File

@@ -9,10 +9,7 @@ function ternary (cond, T, F)
end
function format_time(ticks)
ticks = ticks - time_set_moment - 5184000 * days_passed + 3600 * (current_m + current_h * 60)
if ticks > 5184000 then
current_day = current_day + 1
days_passed = days_passed + 1
@@ -69,6 +66,7 @@ function set_time(d, month, h, m)
time_set_moment = game.tick
current_month = month
current_day = d
days_passed = 0
current_h = h
current_m = m
game.print(game.player.name .. " set the clock to " .. format_time(game.tick) .. ". Type /clock to check the time.")