mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-18 12:34:20 +08:00
Fix McRegionChunkStore.java (#2292)
- Fixes an issue where the LinCompoundTag passed to ChunkStoreHelper::getChunk is not the expected root compound tag, but one that wraps it. See comment of LinRootEntry::toLinTag
This commit is contained in:
parent
34b19577f1
commit
df13de3379
@ -70,7 +70,7 @@ protected McRegionReader getReader(BlockVector2 pos, String worldname) throws Da
|
||||
public LinCompoundTag getChunkData(BlockVector2 position, World world) throws DataException, IOException {
|
||||
McRegionReader reader = getReader(position, world.getName());
|
||||
try (var chunkStream = new DataInputStream(reader.getChunkInputStream(position))) {
|
||||
return LinBinaryIO.readUsing(chunkStream, LinRootEntry::readFrom).toLinTag();
|
||||
return LinBinaryIO.readUsing(chunkStream, LinRootEntry::readFrom).value();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user