From 738607f1aab3d867b34f6a7120fd22bba667242b Mon Sep 17 00:00:00 2001 From: MarioE Date: Sun, 20 Jul 2014 18:44:25 -0400 Subject: [PATCH] Fix /time outputting the wrong time --- TShockAPI/Commands.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index b662102a..a680c08c 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -3205,6 +3205,7 @@ namespace TShockAPI time += 4.5; if (!Main.dayTime) time += 15.0; + time = time % 24.0; args.Player.SendInfoMessage("The current time is {0}:{1:D2}.", (int)Math.Floor(time), (int)Math.Round((time % 1.0) * 60.0)); return; }