mirror of
https://gitlab.bixilon.de/bixilon/pixlyzer.git
synced 2025-09-26 13:40:02 -04:00
fix crash with different mbt-kotlin version
This commit is contained in:
parent
f7d3ad8110
commit
0d2448583f
4
pom.xml
4
pom.xml
@ -80,9 +80,9 @@
|
||||
<systemPath>${project.basedir}/wrapper/data/data/${minecraft.version}_yarn/${minecraft.version}-exhibitionism.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.gitlab.Bixilon</groupId>
|
||||
<groupId>de.bixilon</groupId>
|
||||
<artifactId>mbf-kotlin</artifactId>
|
||||
<version>cc331b8c</version>
|
||||
<version>0.2.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.objenesis</groupId>
|
||||
|
@ -128,7 +128,7 @@ object PixLyzer {
|
||||
|
||||
if (File(mbfAssetsIndex.absolutePath + ".json").exists()) {
|
||||
val mbfStream = ByteArrayOutputStream()
|
||||
MBFBinaryWriter(mbfStream).writeMBF(MBFData(dataInfo = MBFDataInfo(compression = MBFCompressionTypes.ZSDT, preferVariableTypes = true, variableLengthPrefix = true, compressionLevel = 22), data = all))
|
||||
MBFBinaryWriter(mbfStream).writeMBF(MBFData(dataInfo = MBFDataInfo(compression = MBFCompressionTypes.ZSTD, preferVariableTypes = true, variableLengthPrefix = true, compressionLevel = 22), data = all))
|
||||
|
||||
val mbfHash = Util.saveHashFile(ByteArrayInputStream(mbfStream.toByteArray()), tempFileOutputPath, FileOutputStream(tempFileOutputPath), hashDirectory.absolutePath + "/\${shortHash}/\${hash}.mbf")
|
||||
|
||||
@ -164,7 +164,7 @@ object PixLyzer {
|
||||
}
|
||||
|
||||
ByteArrayOutputStream().let {
|
||||
MBFBinaryWriter(it).writeMBF(MBFData(dataInfo = MBFDataInfo(compression = MBFCompressionTypes.ZSDT, preferVariableTypes = true, variableLengthPrefix = true, compressionLevel = 22), data = data))
|
||||
MBFBinaryWriter(it).writeMBF(MBFData(dataInfo = MBFDataInfo(compression = MBFCompressionTypes.ZSTD, preferVariableTypes = true, variableLengthPrefix = true, compressionLevel = 22), data = data))
|
||||
val fileWriter = FileOutputStream("$path.mbf")
|
||||
fileWriter.write(it.toByteArray())
|
||||
fileWriter.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user