From 62216ef0f967e65189a6a2be190b18a14f170cfa Mon Sep 17 00:00:00 2001 From: Sakura Ryoko Date: Tue, 10 Dec 2024 21:27:37 -0500 Subject: [PATCH] Fix NbtReadFile --- .../fi/dy/masa/litematica/schematic/LitematicaSchematic.java | 3 +-- src/main/java/fi/dy/masa/litematica/util/NbtUtils.java | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/fi/dy/masa/litematica/schematic/LitematicaSchematic.java b/src/main/java/fi/dy/masa/litematica/schematic/LitematicaSchematic.java index 886f761d33..b5d04533e0 100644 --- a/src/main/java/fi/dy/masa/litematica/schematic/LitematicaSchematic.java +++ b/src/main/java/fi/dy/masa/litematica/schematic/LitematicaSchematic.java @@ -2379,8 +2379,7 @@ public static NbtCompound readNbtFromFile(File file) return null; } - // TODO (Fix the MaLiLib one) - return fi.dy.masa.litematica.util.NbtUtils.readNbtFromFile(file); + return NbtUtils.readNbtFromFile(file); } public static NbtCompound readNbtFromPath(Path path) diff --git a/src/main/java/fi/dy/masa/litematica/util/NbtUtils.java b/src/main/java/fi/dy/masa/litematica/util/NbtUtils.java index faf6178dcf..5d4ce02f03 100644 --- a/src/main/java/fi/dy/masa/litematica/util/NbtUtils.java +++ b/src/main/java/fi/dy/masa/litematica/util/NbtUtils.java @@ -16,8 +16,9 @@ import net.minecraft.util.math.Vec3i; /** - * Please use malilib/nbt/NbtUtils + * Please use malilib/nbt/NbtUtils from now on */ +@Deprecated(forRemoval = true) public class NbtUtils { @Nullable