Small fix

This commit is contained in:
paulevsGitch 2021-06-11 22:37:21 +03:00
parent 29e6e5edbf
commit e0a9d21d59

View file

@ -20,7 +20,7 @@ public class WorldDataAPI {
public static void load(File dataDir) { public static void load(File dataDir) {
WorldDataAPI.dataDir = dataDir; WorldDataAPI.dataDir = dataDir;
MODS.stream().parallel().forEach(modID -> { MODS.stream().parallel().forEach(modID -> {
File file = new File(dataDir, modID); File file = new File(dataDir, modID + ".nbt");
CompoundTag root = new CompoundTag(); CompoundTag root = new CompoundTag();
if (file.exists()) { if (file.exists()) {
try { try {