From 7de4c8a408f58952d552aebfb158e8f18ba49abe Mon Sep 17 00:00:00 2001 From: MathiewMay Date: Mon, 9 Mar 2026 01:04:52 -0400 Subject: [PATCH] Fixed typo in my System::currentTimeMillis which was resulting in very slow or no passed time on world ticks. --- Minecraft.World/Build/System.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft.World/Build/System.cpp b/Minecraft.World/Build/System.cpp index b7f41b1fb..9c46bfdd8 100644 --- a/Minecraft.World/Build/System.cpp +++ b/Minecraft.World/Build/System.cpp @@ -103,7 +103,7 @@ __int64 System::currentTimeMillis() gettimeofday(&tv, NULL); // Convert to milliseconds since unix epoch instead of windows file time // time is expecting calculation to be between 10-30 ms. - return (int64_t)tv.tv_sec * 1000LL + tv.tv_sec / 1000; + return (int64_t)tv.tv_sec * 1000LL + tv.tv_usec / 1000; #else SYSTEMTIME UTCSysTime;