From b72a15e40680b8e798fc9624752b379665de60d1 Mon Sep 17 00:00:00 2001 From: GliczDev <67753196+GliczDev@users.noreply.github.com> Date: Sun, 10 Nov 2024 12:10:56 +0100 Subject: [PATCH] Fix Anvil importer (I hope...) --- .../net/roxymc/slime/importer/anvil/SlimeAnvilImporter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importer-anvil/src/main/java/net/roxymc/slime/importer/anvil/SlimeAnvilImporter.java b/importer-anvil/src/main/java/net/roxymc/slime/importer/anvil/SlimeAnvilImporter.java index 6d118c8..6bec88c 100644 --- a/importer-anvil/src/main/java/net/roxymc/slime/importer/anvil/SlimeAnvilImporter.java +++ b/importer-anvil/src/main/java/net/roxymc/slime/importer/anvil/SlimeAnvilImporter.java @@ -118,10 +118,10 @@ private LevelData readLevelData(File root) throws IOException { CompoundBinaryTag tag; try (FileInputStream is = new FileInputStream(levelDat)) { - tag = BinaryTagIO.reader().read(is, BinaryTagIO.Compression.GZIP); + tag = BinaryTagIO.reader().read(is, BinaryTagIO.Compression.GZIP).getCompound(DATA_TAG); } - int dataVersion = tag.getCompound(DATA_TAG).getInt(DATA_VERSION_TAG); + int dataVersion = tag.getInt(DATA_VERSION_TAG); CompoundBinaryTag customDataTag = readCustomData(tag, preservedWorldTags);