project(mixins): Don't try to use unlocked FPS on the login screen
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user