Sanity check for bad/untracked meta packets

Fixes ViaVersion/ViaVersion#2549
Fixes ViaVersion/ViaVersion#2521
This commit is contained in:
KennyTV 2021-06-15 22:27:56 +02:00
parent 1dc0f72e54
commit 3b85200641
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -393,6 +393,7 @@ public class EntityPackets1_14 extends LegacyEntityRewriter<Protocol1_13_2To1_14
filter().handler((event, meta) -> {
EntityType type = event.entityType();
if (type == null) return;
if (type.isOrHasParent(Entity1_14Types.ABSTRACT_ILLAGER_BASE) || type == Entity1_14Types.RAVAGER || type == Entity1_14Types.WITCH) {
int index = event.index();
if (index == 14) {