Skip to content
This repository was archived by the owner on Jun 5, 2024. It is now read-only.

Commit edcf200

Browse files
authored
Total time playing
Shows the total time you've been playing instead of per level
1 parent 9ef58ce commit edcf200

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

karlsonmod.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class MyMod : MelonMod
2929
};
3030

3131
public Discord.Discord discord = new Discord.Discord(798687396148281404, (ulong)Discord.CreateFlags.NoRequireDiscord);
32-
32+
public TimeSpan t = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0);
3333
public override void OnUpdate()
3434
{
3535
discord.RunCallbacks();
@@ -52,7 +52,6 @@ public override void OnLevelWasInitialized(int level)
5252
leveltxt = "Playing " + leveldict[level];
5353

5454
}
55-
TimeSpan t = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0);
5655

5756
var activity = new Discord.Activity
5857
{

0 commit comments

Comments
 (0)