Skip to content

Commit b72a15e

Browse files
committed
Fix Anvil importer (I hope...)
1 parent b513143 commit b72a15e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

importer-anvil/src/main/java/net/roxymc/slime/importer/anvil/SlimeAnvilImporter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ private LevelData readLevelData(File root) throws IOException {
118118

119119
CompoundBinaryTag tag;
120120
try (FileInputStream is = new FileInputStream(levelDat)) {
121-
tag = BinaryTagIO.reader().read(is, BinaryTagIO.Compression.GZIP);
121+
tag = BinaryTagIO.reader().read(is, BinaryTagIO.Compression.GZIP).getCompound(DATA_TAG);
122122
}
123123

124-
int dataVersion = tag.getCompound(DATA_TAG).getInt(DATA_VERSION_TAG);
124+
int dataVersion = tag.getInt(DATA_VERSION_TAG);
125125

126126
CompoundBinaryTag customDataTag = readCustomData(tag, preservedWorldTags);
127127

0 commit comments

Comments
 (0)