Fix multi block change reading

This commit is contained in:
KennyTV 2020-11-06 11:30:46 +01:00
parent 424e855d72
commit 721c52e3f5
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ public class BlockRewriter {
@Override
public void registerMap() {
map(Type.LONG); // Chunk position
map(Type.BOOLEAN); // Suppress light updates
handler(wrapper -> {
for (BlockChangeRecord record : wrapper.passthrough(Type.VAR_LONG_BLOCK_CHANGE_RECORD_ARRAY)) {
record.setBlockId(protocol.getMappingData().getNewBlockStateId(record.getBlockId()));