Also remove block entities above 255 in chunk data for 1.17->1.16

This commit is contained in:
Nassim Jahnke 2022-03-18 10:32:34 +01:00
parent 31787b5e5b
commit 12926980e2
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -309,7 +309,7 @@ public final class BlockItemPackets1_17 extends ItemRewriter<Protocol1_16_4To1_1
chunk.getBlockEntities().removeIf(compound -> {
NumberTag tag = compound.get("y");
return tag != null && tag.asInt() < 0;
return tag != null && (tag.asInt() < 0 || tag.asInt() > 255);
});
});
}