Empty transient config

This commit is contained in:
Auxilor
2021-12-06 10:10:35 +00:00
parent 548529feb3
commit db0d55659f

View File

@@ -26,4 +26,11 @@ public class YamlTransientConfig extends YamlConfigWrapper {
public YamlTransientConfig(@NotNull final String contents) {
super(Eco.getHandler().getConfigFactory().createYamlConfig(YamlConfiguration.loadConfiguration(new StringReader(contents))));
}
/**
* Create a new empty transient config.
*/
public YamlTransientConfig() {
super(Eco.getHandler().getConfigFactory().createYamlConfig(YamlConfiguration.loadConfiguration(new StringReader(""))));
}
}