Merge pull request #142 from Szum123321/81_125_test

i'm really dumb, fixing #122
This commit is contained in:
Szum123321 2023-09-12 22:49:56 +02:00 committed by GitHub
commit 908bb95c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1,12 +1,12 @@
# Done to increase the memory available to gradle. # Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G org.gradle.jvmargs=-Xmx1G
minecraft_version=1.20.2-pre3 minecraft_version=1.20.1
yarn_mappings=1.20.2-pre3+build.5 yarn_mappings=1.20.1+build.10
loader_version=0.14.22 loader_version=0.14.22
#Fabric api #Fabric api
fabric_version=0.88.3+1.20.2 fabric_version=0.88.1+1.20.1
#Cloth Config #Cloth Config
cloth_version=11.1.106 cloth_version=11.1.106

View File

@ -13,6 +13,7 @@ import net.szum123321.textile_backup.core.WorldSavingState;
import net.szum123321.textile_backup.core.create.compressors.ParallelZipCompressor; import net.szum123321.textile_backup.core.create.compressors.ParallelZipCompressor;
import net.szum123321.textile_backup.core.create.compressors.ZipCompressor; import net.szum123321.textile_backup.core.create.compressors.ZipCompressor;
import net.szum123321.textile_backup.core.create.compressors.tar.AbstractTarArchiver; import net.szum123321.textile_backup.core.create.compressors.tar.AbstractTarArchiver;
import net.szum123321.textile_backup.core.create.compressors.tar.ParallelBZip2Compressor;
import net.szum123321.textile_backup.core.create.compressors.tar.ParallelGzipCompressor; import net.szum123321.textile_backup.core.create.compressors.tar.ParallelGzipCompressor;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@ -118,6 +119,7 @@ public record ExecutableBackup(@NotNull MinecraftServer server,
ZipCompressor.getInstance().createArchive(world, outFile, this, coreCount); ZipCompressor.getInstance().createArchive(world, outFile, this, coreCount);
} }
} }
case BZIP2 -> ParallelBZip2Compressor.getInstance().createArchive(world, outFile, this, coreCount);
case GZIP -> ParallelGzipCompressor.getInstance().createArchive(world, outFile, this, coreCount); case GZIP -> ParallelGzipCompressor.getInstance().createArchive(world, outFile, this, coreCount);
case TAR -> new AbstractTarArchiver().createArchive(world, outFile, this, coreCount); case TAR -> new AbstractTarArchiver().createArchive(world, outFile, this, coreCount);
} }