Fixed For emissive texture loading

This commit is contained in:
Frank 2022-10-25 23:57:27 +02:00
parent bfebba6791
commit 9fcec2b033
3 changed files with 145 additions and 85 deletions

View file

@ -229,7 +229,6 @@ public class NamedPathConfig extends PathConfig {
@SuppressWarnings("unchecked")
private <T> T _get(ConfigToken<T> what, boolean raw) {
//TODO: Check if we can make config fully Generic to avoid runtime type checks...
if (ConfigKeeper.BooleanEntry.class.isAssignableFrom(what.type)) {
return (T) _getBoolean((ConfigToken<Boolean>) what, raw);
}