Skip to content

Commit

Permalink
fix another crash with null screen handler types
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed May 19, 2024
1 parent 4a6161a commit 5a3c37e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ org.gradle.configureondemand=true
# Enable advanced multi-module optimizations (share tiny-remaper instance between projects)
fabric.loom.multiProjectOptimisation=true
# Mod Properties
baseVersion = 1.3.1
baseVersion = 1.3.2
defaultBranch = 1.20
branch = 1.20
3 changes: 2 additions & 1 deletion src/main/java/folk/sisby/inventory_tabs/ScreenSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.function.Predicate;

Expand All @@ -37,7 +38,7 @@ public static boolean allowTabs(Screen screen) {
Boolean override = allowTabs(Registries.SCREEN_HANDLER.getKey(type).orElseThrow());
if (override != null) return override;
}
} catch (UnsupportedOperationException ignored) {
} catch (UnsupportedOperationException | NoSuchElementException ignored) {
}
return InventoryTabs.CONFIG.allowScreensByDefault;
}
Expand Down

0 comments on commit 5a3c37e

Please sign in to comment.