Be more tolerant against reading issues
This commit is contained in:
parent
fc3dc71a44
commit
8d9a95da7a
1 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,7 @@ import ru.bclib.util.Logger;
|
|||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.EOFException;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
@ -607,7 +608,7 @@ public class DataFixerAPI {
|
|||
private static CompoundTag readNbt(File file) throws IOException {
|
||||
try {
|
||||
return NbtIo.readCompressed(file);
|
||||
} catch (ZipException e){
|
||||
} catch (ZipException | EOFException e){
|
||||
return NbtIo.read(file);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue