File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/main/java/net/earthcomputer/clientcommands/command Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,9 @@ private static int getMaxFps(FabricClientCommandSource source) {
38
38
}
39
39
40
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
41
source .getClient ().getFramerateLimitTracker ().setFramerateLimit (maxFps );
42
+ int maxRefreshRate = MAX_REFRESH_RATE .getAsInt ();
43
+ boolean unlimited = maxFps > maxRefreshRate ;
50
44
if (unlimited ) {
51
45
source .sendFeedback (Component .translatable ("commands.cfps.setMaxFps.unlimited" ));
52
46
} else {
You can’t perform that action at this time.
0 commit comments