1.16-pre2 update.

This commit is contained in:
Szum123321 2020-06-05 16:15:36 +02:00
parent 6590e38c3d
commit 19d86cc274
4 changed files with 13 additions and 10 deletions

View File

@ -33,8 +33,8 @@ dependencies {
include "io.github.cottonmc.cotton:cotton-logging:1.0.0-rc.4"
include "io.github.cottonmc.cotton:cotton-config:1.0.0-rc.7"
modCompile "org.apache.commons:commons-compress:1.13"
include "org.apache.commons:commons-compress:1.13"
modCompile "org.apache.commons:commons-compress:1.19"
include "org.apache.commons:commons-compress:1.19"
modCompile "org.tukaani:xz:1.8"
include "org.tukaani:xz:1.8"

View File

@ -1,14 +1,14 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
minecraft_version=20w21a
yarn_mappings=20w21a+build.15
loader_version=0.8.4+build.198
minecraft_version=1.16-pre2
yarn_mappings=1.16-pre2+build.1
loader_version=0.8.7+build.201
#Fabric api
fabric_version=0.10.10+build.347-1.16
fabric_version=0.11.6+build.355-1.16
# Mod Properties
mod_version = 1.2.1-20w21a
mod_version = 1.2.1-1.16-pre2
maven_group = net.szum123321
archives_base_name = textile_backup

View File

@ -20,6 +20,8 @@ package net.szum123321.textile_backup.core;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.world.dimension.DimensionType;
import net.szum123321.textile_backup.TextileBackup;
import net.szum123321.textile_backup.core.compressors.GenericTarCompressor;
@ -46,9 +48,10 @@ public class MakeBackupThread implements Runnable {
@Override
public void run() {
File world = ((MinecraftServerSessionAccessor)server)
File world = ((MinecraftServerSessionAccessor)server) // I'm lost.
.getSession()
.method_27424(DimensionType.OVERWORLD_REGISTRY_KEY);
.method_27424(RegistryKey.of(Registry.DIMENSION, DimensionType.OVERWORLD_REGISTRY_KEY.getValue()));
File outFile = BackupHelper
.getBackupRootPath(Utilities.getLevelName(server))

View File

@ -14,7 +14,7 @@ import java.time.format.DateTimeFormatter;
public class Utilities {
public static String getLevelName(MinecraftServer server) {
return ((MinecraftServerSessionAccessor)server).getSession().readLevelProperties().getLevelName();
return ((MinecraftServerSessionAccessor)server).getSession().getDirectoryName();
}
public static boolean isWindows(){