diff --git a/api/src/main/java/com/seibel/distanthorizons/api/objects/config/DhApiConfigValue.java b/api/src/main/java/com/seibel/distanthorizons/api/objects/config/DhApiConfigValue.java index bbd74d9e1..af0f7c915 100644 --- a/api/src/main/java/com/seibel/distanthorizons/api/objects/config/DhApiConfigValue.java +++ b/api/src/main/java/com/seibel/distanthorizons/api/objects/config/DhApiConfigValue.java @@ -87,7 +87,20 @@ public class DhApiConfigValue implements IDhApiConfigValue extends AbstractConfigType> implem * and any get() method calls will return the apiValue if it is set. */ public final boolean allowApiOverride; + /** Will be null if un-set */ + @Nullable private T apiValue; @@ -132,9 +135,9 @@ public class ConfigEntry extends AbstractConfigType> implem @Override public T get() { - if (allowApiOverride && apiValue != null) + if (this.allowApiOverride && this.apiValue != null) { - return apiValue; + return this.apiValue; } return super.get();