Skip to content

Commit

Permalink
Fixed the sponge config loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Abelkrijgtalles committed Dec 7, 2024
1 parent b8f2af1 commit c87e3e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static class Defaults {

// adding toml in the future could be a nice thing, wouldn't know why I would add it, + it has to change more stuff and makes it even more abstract.
public static final YamlLikeConfigGenerator PURE_YAML = new YamlLikeConfigGenerator(":", null, ": ", "# ");
public static final YamlLikeConfigGenerator SPONGE = new YamlLikeConfigGenerator("{", "}", " = ", "# ");
public static final YamlLikeConfigGenerator SPONGE = new YamlLikeConfigGenerator(" {", "}", " = ", "# ");

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public static class Wrapper implements Config {
public Wrapper(Path configPath, String defaultConfig) {

config = new SpongeConfig(configPath, defaultConfig);
config.loadConfig();

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class SpongeMain {
@Listener
public void onServerStart(final StartedEngineEvent<Server> event) {

MojangMaps.LOGGER.info(defaultConfig);
MojangMaps.init(new LoaderInfoSponge(defaultConfig));

}
Expand Down

0 comments on commit c87e3e3

Please sign in to comment.