mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-19 11:45:17 +01:00
Sanity check for bad/untracked meta packets
Fixes ViaVersion/ViaVersion#2549 Fixes ViaVersion/ViaVersion#2521
This commit is contained in:
parent
1dc0f72e54
commit
3b85200641
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user