We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b513143 commit b72a15eCopy full SHA for b72a15e
importer-anvil/src/main/java/net/roxymc/slime/importer/anvil/SlimeAnvilImporter.java
@@ -118,10 +118,10 @@ private LevelData readLevelData(File root) throws IOException {
118
119
CompoundBinaryTag tag;
120
try (FileInputStream is = new FileInputStream(levelDat)) {
121
- tag = BinaryTagIO.reader().read(is, BinaryTagIO.Compression.GZIP);
+ tag = BinaryTagIO.reader().read(is, BinaryTagIO.Compression.GZIP).getCompound(DATA_TAG);
122
}
123
124
- int dataVersion = tag.getCompound(DATA_TAG).getInt(DATA_VERSION_TAG);
+ int dataVersion = tag.getInt(DATA_VERSION_TAG);
125
126
CompoundBinaryTag customDataTag = readCustomData(tag, preservedWorldTags);
127
0 commit comments