mirror of
https://github.com/songoda/EpicAnchors.git
synced 2024-10-31 23:59:35 +01:00
cleanup pom, use clear config method
This commit is contained in:
parent
2bc7f1d907
commit
a9ffd55cd5
4
pom.xml
4
pom.xml
@ -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>
|
||||||
|
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user