Fix Config setApi not firing listeners

This commit is contained in:
James Seibel
2023-06-17 21:52:52 -05:00
parent f5784c07b1
commit 55019c51ed
@@ -56,7 +56,11 @@ public class ConfigEntry<T> extends AbstractConfigType<T, ConfigEntry<T>> implem
public T getDefaultValue() { return this.defaultValue; }
@Override
public void setApiValue(T newApiValue) { this.apiValue = newApiValue; }
public void setApiValue(T newApiValue)
{
this.apiValue = newApiValue;
this.listenerList.forEach(IConfigListener::onConfigValueSet);
}
@Override
public T getApiValue() { return this.apiValue; }
@Override