Skip to content

Commit

Permalink
Fixed config file creation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Refrac committed Mar 19, 2024
1 parent 2c37268 commit 6bdf09d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.refracdevelopment</groupId>
<artifactId>SimpleTags</artifactId>
<version>1.5</version>
<version>1.5.1</version>
<packaging>jar</packaging>

<name>SimpleTags</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public class ConfigFile {
public ConfigFile(String name) {
try {
configFile = YamlDocument.create(new File(SimpleTags.getInstance().getDataFolder(), name),
GeneralSettings.DEFAULT,
getClass().getResourceAsStream("/" + name),
GeneralSettings.builder().setUseDefaults(false).build(),
LoaderSettings.builder().setAutoUpdate(true).build(),
DumperSettings.DEFAULT,
UpdaterSettings.builder().setVersioning(new BasicVersioning("config-version"))
Expand Down

0 comments on commit 6bdf09d

Please sign in to comment.