cleanup pom, use clear config method

This commit is contained in:
jascotty2 2019-09-09 06:08:39 -05:00
parent 2bc7f1d907
commit a9ffd55cd5
2 changed files with 1 additions and 6 deletions

View File

@ -50,10 +50,6 @@
<pattern>com.songoda.core</pattern>
<shadedPattern>${project.groupId}.epicanchors.core</shadedPattern>
</relocation>
<relocation>
<pattern>com.songoda.lootables</pattern>
<shadedPattern>${project.groupId}.epicanchors.lootables</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>

View File

@ -147,8 +147,7 @@ public class EpicAnchors extends SongodaPlugin {
}
private void saveToFile() {
dataFile = new Config(this, "data.yml");
//dataFile.clearConfig(true);
dataFile.clearConfig(true);
for (Anchor anchor : anchorManager.getAnchors().values()) {
String locationStr = Methods.serializeLocation(anchor.getLocation());
dataFile.set("Anchors." + locationStr + ".ticksLeft", anchor.getTicksLeft());