Skip to content

Commit

Permalink
Suppress useless warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed May 22, 2024
1 parent 6125637 commit 47bf562
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public static void addToHistory(String string) {
history.add(0, string);
}

@SuppressWarnings("resource")
private static File getFile(String suffix) {
return new File(MinecraftClient.getInstance().runDirectory, "toomanybinds_" + suffix + ".txt");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public class VanillaKeybindSuggestions implements SuggestionProvider {
"key.saveToolbarActivator",
"key.loadToolbarActivator"
));

@SuppressWarnings("resource")
public void addEntries(List<BindSuggestion> binds) {
for (KeyBinding bind : MinecraftClient.getInstance().options.allKeys) {
if ((bind.isUnbound() || !TooManyBinds.config.hideBoundKeys)
Expand Down

0 comments on commit 47bf562

Please sign in to comment.