Fixed importing saves / File chooser bad size

This commit is contained in:
Anuken
2018-07-06 09:52:18 -04:00
parent fa0d89b6df
commit 2c97a4aefe
7 changed files with 33 additions and 27 deletions
+2 -1
View File
@@ -74,7 +74,7 @@ public class SaveIO{
}
public static boolean isSaveValid(FileHandle file){
return isSaveValid(new DataInputStream(file.read()));
return isSaveValid(new DataInputStream(new InflaterInputStream(file.read())));
}
public static boolean isSaveValid(DataInputStream stream){
@@ -85,6 +85,7 @@ public class SaveIO{
ver.getData(stream);
return true;
}catch (Exception e){
e.printStackTrace();
return false;
}
}