We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cfb0e6 commit 9df6abbCopy full SHA for 9df6abb
src/main/java/net/earthcomputer/clientcommands/command/FramerateCommand.java
@@ -38,15 +38,9 @@ private static int getMaxFps(FabricClientCommandSource source) {
38
}
39
40
private static int setMaxFps(FabricClientCommandSource source, int maxFps) {
41
- int maxRefreshRate = MAX_REFRESH_RATE.getAsInt();
42
- boolean unlimited;
43
- if (maxFps > maxRefreshRate) {
44
- maxFps = maxRefreshRate;
45
- unlimited = true;
46
- } else {
47
- unlimited = false;
48
- }
49
source.getClient().getFramerateLimitTracker().setFramerateLimit(maxFps);
+ int maxRefreshRate = MAX_REFRESH_RATE.getAsInt();
+ boolean unlimited = maxFps > maxRefreshRate;
50
if (unlimited) {
51
source.sendFeedback(Component.translatable("commands.cfps.setMaxFps.unlimited"));
52
} else {
0 commit comments