mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix config spec in cases of enum class discrepancies (#7635)
This commit is contained in:
1 parent
8460227ddf
commit
276871d5a3
1 file changed
+1
-1
@@ -374,7 +374,7 @@ public class ForgeConfigSpec extends UnmodifiableConfigWrapper<UnmodifiableConfi
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
return acceptableValues.contains(converter.get(obj, defaultValue.getClass()));
|
||||
return acceptableValues.contains(converter.get(obj, defaultValue.getDeclaringClass()));
|
||||
} catch (IllegalArgumentException | ClassCastException e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user