0

fix AssetsManager: save resources

This commit is contained in:
2020-12-31 14:38:46 +03:00
parent 45f780f194
commit 6441ddb3a5
2 changed files with 2 additions and 1 deletions

View File

@@ -1,3 +1,3 @@
projectGroup=ghast projectGroup=ghast
projectName=ghast-tools projectName=ghast-tools
projectVersion=1.2 projectVersion=1.2.1

View File

@@ -136,6 +136,7 @@ public class AssetsManager {
while ((count = inputStream.read(buffer)) != -1) { while ((count = inputStream.read(buffer)) != -1) {
outputStream.write(buffer, 0, count); outputStream.write(buffer, 0, count);
} }
outputStream.flush();
} }
} catch (IOException e) { } catch (IOException e) {
throw new AssetsException(format("Error save asset \"{0}\" to \"{1}\": {2}", throw new AssetsException(format("Error save asset \"{0}\" to \"{1}\": {2}",