project(mixins): Don't try to use unlocked FPS on the login screen

This commit is contained in:
Owain van Brakel
2022-04-23 02:42:27 +02:00
parent 643eaf0bcc
commit 7016516340

View File

@@ -45,11 +45,7 @@ public abstract class RSNanoClockMixin implements RSNanoClock
@Replace("wait")
public int copy$wait(int cycleDurationMillis, int var2)
{
if (!client.isUnlockedFps())
{
return copy$wait(cycleDurationMillis, var2);
}
else
if (client.isUnlockedFps() && client.getRSGameState() >= 25)
{
long nanoTime = System.nanoTime();
@@ -108,5 +104,9 @@ public abstract class RSNanoClockMixin implements RSNanoClock
return 1;
}
}
else
{
return copy$wait(cycleDurationMillis, var2);
}
}
}