Skip to content

Commit

Permalink
Fix Anvil importer (I hope...)
Browse files Browse the repository at this point in the history
  • Loading branch information
GliczDev committed Nov 10, 2024
1 parent b513143 commit b72a15e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b72a15e

Please sign in to comment.