File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/net/earthcomputer/clientcommands Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ public static void register(CommandDispatcher<FabricClientCommandSource> dispatc
23
23
.suggests ((context , builder ) -> builder .suggest (MAX_REFRESH_RATE .getAsInt ()).buildFuture ())
24
24
.executes (ctx -> maxFps (ctx .getSource (), getInteger (ctx , "maxfps" ))))
25
25
.then (literal ("unlimited" )
26
- .executes (ctx -> maxFps (ctx .getSource (), MAX_REFRESH_RATE .getAsInt ()))));
26
+ .executes (ctx -> maxFps (ctx .getSource (), MAX_REFRESH_RATE .getAsInt () + 1 ))));
27
27
}
28
28
29
29
private static int maxFps (FabricClientCommandSource source , int maxFps ) {
30
30
int maxRefreshRate = MAX_REFRESH_RATE .getAsInt ();
31
31
boolean unlimited ;
32
- if (maxFps >= maxRefreshRate ) {
32
+ if (maxFps > maxRefreshRate ) {
33
33
maxFps = maxRefreshRate ;
34
34
unlimited = true ;
35
35
} else {
Original file line number Diff line number Diff line change 11
11
public class MinecraftMixin {
12
12
@ ModifyConstant (method = "runTick" , constant = @ Constant (intValue = Options .UNLIMITED_FRAMERATE_CUTOFF ))
13
13
private int changeCutoff (int original ) {
14
- return FramerateCommand .MAX_REFRESH_RATE .getAsInt ();
14
+ return FramerateCommand .MAX_REFRESH_RATE .getAsInt () + 1 ;
15
15
}
16
16
}
You can’t perform that action at this time.
0 commit comments