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> <pattern>com.songoda.core</pattern>
<shadedPattern>${project.groupId}.epicanchors.core</shadedPattern> <shadedPattern>${project.groupId}.epicanchors.core</shadedPattern>
</relocation> </relocation>
<relocation>
<pattern>com.songoda.lootables</pattern>
<shadedPattern>${project.groupId}.epicanchors.lootables</shadedPattern>
</relocation>
</relocations> </relocations>
</configuration> </configuration>
</execution> </execution>

View File

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