Fix 1.17 map data

Fixes #367
This commit is contained in:
KennyTV 2021-06-10 18:34:15 +02:00
parent 80f9dce513
commit 3cec1751c9
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -307,9 +307,10 @@ public final class BlockItemPackets1_17 extends ItemRewriter<Protocol1_16_4To1_1
boolean hasMarkers = wrapper.read(Type.BOOLEAN);
if (!hasMarkers) {
wrapper.write(Type.VAR_INT, 0); // Array size
} else {
MapColorRewriter.getRewriteHandler(MapColorRewrites::getMappedColor).handle(wrapper);
}
});
handler(MapColorRewriter.getRewriteHandler(MapColorRewrites::getMappedColor));
}
});
}