fixed bug where "WorldDataAPI" would always restore an empty Tag.

This commit is contained in:
Frank Bauer 2021-07-20 00:36:59 +02:00
parent 4ad3ff8277
commit 66851baf0f
2 changed files with 4 additions and 6 deletions

View file

@ -24,7 +24,6 @@ public class WorldDataAPI {
MODS.stream().parallel().forEach(modID -> {
File file = new File(dataDir, modID + ".nbt");
CompoundTag root = new CompoundTag();
TAGS.put(modID, root);
if (file.exists()) {
try {
root = NbtIo.readCompressed(file);
@ -46,6 +45,8 @@ public class WorldDataAPI {
saveFile(modID);
}
}
TAGS.put(modID, root);
});
}