Fix multi block change reading
This commit is contained in:
parent
424e855d72
commit
721c52e3f5
|
@ -71,6 +71,7 @@ public class BlockRewriter {
|
||||||
@Override
|
@Override
|
||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
map(Type.LONG); // Chunk position
|
map(Type.LONG); // Chunk position
|
||||||
|
map(Type.BOOLEAN); // Suppress light updates
|
||||||
handler(wrapper -> {
|
handler(wrapper -> {
|
||||||
for (BlockChangeRecord record : wrapper.passthrough(Type.VAR_LONG_BLOCK_CHANGE_RECORD_ARRAY)) {
|
for (BlockChangeRecord record : wrapper.passthrough(Type.VAR_LONG_BLOCK_CHANGE_RECORD_ARRAY)) {
|
||||||
record.setBlockId(protocol.getMappingData().getNewBlockStateId(record.getBlockId()));
|
record.setBlockId(protocol.getMappingData().getNewBlockStateId(record.getBlockId()));
|
||||||
|
|
Loading…
Reference in New Issue