Skip to content

Commit fdf9ff3

Browse files
committed
mojang sorts them anyway -_-
1 parent 4e6c6c3 commit fdf9ff3

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

src/main/java/net/earthcomputer/clientcommands/command/FramerateCommand.java

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,22 @@
99
import static net.fabricmc.fabric.api.client.command.v2.ClientCommandManager.*;
1010

1111
public class FramerateCommand {
12-
1312
private static final int[] COMMON_REFRESH_RATES = new int[] {
14-
600,
15-
540,
16-
480,
17-
420,
18-
360,
19-
300,
20-
240,
21-
180,
22-
165,
23-
144,
24-
120,
25-
90,
26-
60,
27-
45,
2813
30,
29-
15,
30-
10
14+
45,
15+
60,
16+
90,
17+
120,
18+
144,
19+
165,
20+
180,
21+
240,
22+
300,
23+
360,
24+
420,
25+
480,
26+
540,
27+
600
3128
};
3229

3330
public static void register(CommandDispatcher<FabricClientCommandSource> dispatcher) {
@@ -40,7 +37,7 @@ public static void register(CommandDispatcher<FabricClientCommandSource> dispatc
4037
int maxFps = getDisplayMaxFramerate();
4138
for (int refreshRate : COMMON_REFRESH_RATES) {
4239
if (refreshRate > maxFps) {
43-
continue;
40+
break;
4441
}
4542
builder.suggest(refreshRate);
4643
}

0 commit comments

Comments
 (0)