Skip to content

Commit 810aacb

Browse files
committed
null check
1 parent 3dc3d59 commit 810aacb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/meteordevelopment/meteorclient/settings/AbstractRegistryListSetting.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ protected C load(NbtCompound tag) {
7979
NbtList valueTag = tag.getListOrEmpty("value");
8080
for (NbtElement tagI : valueTag) {
8181
V value = this.registry.get(Identifier.of(tagI.asString().orElse("")));
82+
if (value == null) continue;
8283

8384
if (filter == null || filter.test(value)) get().add(value);
8485
}

0 commit comments

Comments
 (0)