Wipe datapacks on setup

This commit is contained in:
Daniel Mills committed 2021-07-14 14:06:40 -04:00
1 parent c167e881fb
commit 24aaefe342
2 files changed
+4

No files matched your search

+2
View File
@@ -93,6 +93,8 @@ public class Iris extends VolmitPlugin implements Listener {
return; return;
} }
if(packs.exists()) if(packs.exists())
{ {
for(File i : packs.listFiles()) for(File i : packs.listFiles())
@@ -463,6 +463,8 @@ public class IrisDimension extends IrisRegistrant {
boolean write = false; boolean write = false;
boolean changed = false; boolean changed = false;
IO.delete(new File(datapacks, "iris/data/" + getLoadKey()));
for(IrisBiome i : getAllBiomes(data)) for(IrisBiome i : getAllBiomes(data))
{ {
if(i.isCustom()) if(i.isCustom())