diff --git a/build.gradle b/build.gradle index e11d4de..3607f22 100644 --- a/build.gradle +++ b/build.gradle @@ -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" - include "org.apache.commons:commons-compress:1.8.1" - include "org.apache.commons:commons-io:2.6" + include "org.apache.commons:commons-compress:1.9" + include "org.apache.commons:commons-io:1.3.2" // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. // You may need to force-disable transitiveness on them. diff --git a/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java b/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java index 471a1d3..a47bb8f 100644 --- a/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java +++ b/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java @@ -18,7 +18,6 @@ package net.szum123321.textile_backup.core; -import jdk.internal.jline.internal.Nullable; import net.fabricmc.loader.api.FabricLoader; import net.minecraft.server.MinecraftServer; import net.minecraft.server.command.ServerCommandSource; @@ -51,7 +50,7 @@ public class BackupHelper { TextileBackup.logger.error(s); } - public static void create(MinecraftServer server, ServerCommandSource ctx, boolean save, @Nullable String comment) { + public static void create(MinecraftServer server, ServerCommandSource ctx, boolean save, String comment) { LocalDateTime now = LocalDateTime.now(); StringBuilder builder = new StringBuilder(); diff --git a/src/main/java/net/szum123321/textile_backup/core/MakeBackupThread.java b/src/main/java/net/szum123321/textile_backup/core/MakeBackupThread.java index 7ab7aa9..25127f5 100644 --- a/src/main/java/net/szum123321/textile_backup/core/MakeBackupThread.java +++ b/src/main/java/net/szum123321/textile_backup/core/MakeBackupThread.java @@ -18,7 +18,6 @@ package net.szum123321.textile_backup.core; -import jdk.internal.jline.internal.Nullable; import net.minecraft.server.MinecraftServer; import net.minecraft.server.command.ServerCommandSource; import net.minecraft.world.dimension.DimensionType; @@ -30,9 +29,9 @@ import java.time.LocalDateTime; public class MakeBackupThread extends Thread { MinecraftServer server; ServerCommandSource ctx; - @Nullable String comment; + String comment; - public MakeBackupThread(MinecraftServer server, ServerCommandSource ctx, @Nullable String comment){ + public MakeBackupThread(MinecraftServer server, ServerCommandSource ctx, String comment){ this.server = server; this.ctx = ctx; this.comment = comment;