We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d00b0 commit f9f604bCopy full SHA for f9f604b
src/main/java/meteordevelopment/meteorclient/settings/AbstractRegistryItemSetting.java
@@ -31,7 +31,7 @@ protected final V parseImpl(String str) {
31
32
@Override
33
protected final boolean isValueValid(V value) {
34
- return filter.test(value);
+ return value != null && filter.test(value);
35
}
36
37
@@ -50,9 +50,7 @@ protected final NbtCompound save(NbtCompound tag) {
50
protected final V load(NbtCompound tag) {
51
V value = registry.get(Identifier.of(tag.getString("value", "")));
52
53
- if (value == null) {
54
- resetImpl();
55
- } else if (!filter.test(value)) {
+ if (!isValueValid(value)) {
56
resetImpl();
57
} else {
58
this.value = value;
0 commit comments