mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
This commit is contained in:
1 parent
8e16765438
commit
d31ea640f9
1 file changed
+1
-1
@@ -330,7 +330,7 @@ public class ForgeConfigSpec extends UnmodifiableConfigWrapper<UnmodifiableConfi
|
||||
return defineInList(path, () -> defaultValue, acceptableValues);
|
||||
}
|
||||
public <T> ConfigValue<T> defineInList(List<String> path, Supplier<T> defaultSupplier, Collection<? extends T> acceptableValues) {
|
||||
return define(path, defaultSupplier, acceptableValues::contains);
|
||||
return define(path, defaultSupplier, o -> o != null && acceptableValues.contains(o));
|
||||
}
|
||||
//endregion
|
||||
|
||||
|
||||
Reference in new issue
Block a user