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) {
3838 }
3939
4040 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- }
4941 source .getClient ().getFramerateLimitTracker ().setFramerateLimit (maxFps );
42+ int maxRefreshRate = MAX_REFRESH_RATE .getAsInt ();
43+ boolean unlimited = maxFps > maxRefreshRate ;
5044 if (unlimited ) {
5145 source .sendFeedback (Component .translatable ("commands.cfps.setMaxFps.unlimited" ));
5246 } else {
You can’t perform that action at this time.
0 commit comments