mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 17:47:32 +00:00
Fix Sys not Available on Minecraft Servers
This commit is contained in:
1 parent
7b9a29336c
commit
c9755ce1e1
1 file changed
+1
-3
@@ -1,7 +1,5 @@
|
||||
package noppes.npcs.util;
|
||||
|
||||
import org.lwjgl.Sys;
|
||||
|
||||
public class MillisTimer {
|
||||
float ticksPerSecond;
|
||||
private double lastHRTime;
|
||||
@@ -81,6 +79,6 @@ public class MillisTimer {
|
||||
}
|
||||
|
||||
private long getLastSyncSysClock() {
|
||||
return Sys.getTime() * 1000L / Sys.getTimerResolution();
|
||||
return System.nanoTime() / 1_000_000L;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user