Bandaid fix tile entity error

This commit is contained in:
KennyTV 2021-06-16 13:51:04 +02:00
parent 8e78a14c14
commit e71c34255b
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -302,6 +302,11 @@ public class BlockItemPackets1_13 extends com.viaversion.viabackwards.api.rewrit
if (!provider.isHandled(id)) continue;
int sectionIndex = ((NumberTag) tag.get("y")).asInt() >> 4;
if (sectionIndex < 0) {
// 1.17 chunks
continue;
}
ChunkSection section = chunk.getSections()[sectionIndex];
int x = ((NumberTag) tag.get("x")).asInt();