Dont try to load mca regions

This commit is contained in:
Daniel Mills 2021-07-19 06:31:57 -04:00
parent e19ae7af59
commit f9a815bba6

View File

@ -313,15 +313,7 @@ public class NBTWorld {
if(mcaf == null) if(mcaf == null)
{ {
File f = getRegionFile(x, z); mcaf = new MCAFile(x, z);
try {
mcaf = f.exists() ? MCAUtil.read(f) : new MCAFile(x, z);
} catch (IOException e) {
Iris.error("Failed to properly read MCA File " + f.getPath() + " Using a blank one.");
e.printStackTrace();
mcaf = new MCAFile(x, z);
}
regionLock.lock(); regionLock.lock();
loadedRegions.put(key, mcaf); loadedRegions.put(key, mcaf);
regionLock.unlock(); regionLock.unlock();