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