quick fix : Condition is covered by further condition

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 4ad67bc34b
commit f446ea280f
17 files changed
+16 -25

No files matched your search

@@ -78,7 +78,7 @@ public class TabRegistry {
Class<?> c = Class.forName("codechicken.nei.NEIClientConfig");
Object hidden = c.getMethod("isHidden").invoke(null);
Object enabled = c.getMethod("isEnabled").invoke(null);
if (hidden != null && hidden instanceof Boolean && enabled != null && enabled instanceof Boolean) {
if (hidden instanceof Boolean && enabled instanceof Boolean) {
if ((Boolean) hidden || !((Boolean) enabled)) {
// If NEI is disabled or hidden, offset the tabs by 60
return 60;