mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-20 11:55:57 +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) -> {
|
filter().handler((event, meta) -> {
|
||||||
EntityType type = event.entityType();
|
EntityType type = event.entityType();
|
||||||
|
if (type == null) return;
|
||||||
if (type.isOrHasParent(Entity1_14Types.ABSTRACT_ILLAGER_BASE) || type == Entity1_14Types.RAVAGER || type == Entity1_14Types.WITCH) {
|
if (type.isOrHasParent(Entity1_14Types.ABSTRACT_ILLAGER_BASE) || type == Entity1_14Types.RAVAGER || type == Entity1_14Types.WITCH) {
|
||||||
int index = event.index();
|
int index = event.index();
|
||||||
if (index == 14) {
|
if (index == 14) {
|
||||||
|
Loading…
Reference in New Issue
Block a user