mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-10-06 11:37:50 +02:00
Added another error catcher
This commit is contained in:
parent
0ad9dcdebf
commit
b50bd20531
@ -76,6 +76,10 @@ public class DataStorage {
|
||||
if (!outFile.exists() || overwrite) {
|
||||
try {
|
||||
InputStream inputStream = DataStorage.class.getClassLoader().getResourceAsStream(fileLoc);
|
||||
if(inputStream == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
FileOutputStream outStream = new FileOutputStream(outFile);
|
||||
|
||||
byte[] buf = new byte[1024];
|
||||
|
Loading…
Reference in New Issue
Block a user