fixed bug where "WorldDataAPI" would always restore an empty Tag.
This commit is contained in:
parent
4ad3ff8277
commit
66851baf0f
2 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue