fix: add additional null check to hook and update commons
This commit is contained in:
parent
83d85abb17
commit
41364257fb
|
@ -18,7 +18,8 @@ public class ResourcePackHook {
|
|||
public static final ScopedValue<Boolean> DISABLED = new ScopedValue<>();
|
||||
|
||||
private static boolean isDisabled() {
|
||||
return DISABLED.orElse(false);
|
||||
Boolean b = DISABLED.orElse(false);
|
||||
return b != null && b; // this null check should not be needed, but it's here just in case
|
||||
}
|
||||
|
||||
public static InputSupplier<InputStream> hookOpenRoot(InputSupplier<InputStream> value, ResourcePack pack, String[] fileName) {
|
||||
|
|
Loading…
Reference in New Issue