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")
|
@Replace("wait")
|
||||||
public int copy$wait(int cycleDurationMillis, int var2)
|
public int copy$wait(int cycleDurationMillis, int var2)
|
||||||
{
|
{
|
||||||
if (!client.isUnlockedFps())
|
if (client.isUnlockedFps() && client.getRSGameState() >= 25)
|
||||||
{
|
|
||||||
return copy$wait(cycleDurationMillis, var2);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
long nanoTime = System.nanoTime();
|
long nanoTime = System.nanoTime();
|
||||||
|
|
||||||
@@ -108,5 +104,9 @@ public abstract class RSNanoClockMixin implements RSNanoClock
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return copy$wait(cycleDurationMillis, var2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user