Fix /time outputting the wrong time
This commit is contained in:
parent
1228acbbc8
commit
738607f1aa
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue