From fa707e5391c60cd878830c2f8e3730219c037bde Mon Sep 17 00:00:00 2001 From: kennytv Date: Sun, 11 Jul 2021 17:35:17 +0200 Subject: [PATCH] Ignore untracked entity meta --- .../viabackwards/api/rewriters/EntityRewriterBase.java | 6 +++--- .../protocol1_12_2to1_13/packets/EntityPackets1_13.java | 1 - .../protocol1_13_2to1_14/packets/EntityPackets1_14.java | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java index cdeea989..4ff9fa72 100644 --- a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java +++ b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java @@ -64,10 +64,10 @@ public abstract class EntityRewriterBase extends En @Override public void handleMetadata(int entityId, List metadataList, UserConnection connection) { - super.handleMetadata(entityId, metadataList, connection); - EntityType type = tracker(connection).entityType(entityId); - if (type == null) return; + if (type == null) return; // Don't handle untracked entities - basically always the fault of a plugin sending virtual entities through concurrency-unsafe handling + + super.handleMetadata(entityId, metadataList, connection); EntityData entityData = entityDataForType(type); diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_12_2to1_13/packets/EntityPackets1_13.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_12_2to1_13/packets/EntityPackets1_13.java index d8a40574..afac43e0 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_12_2to1_13/packets/EntityPackets1_13.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_12_2to1_13/packets/EntityPackets1_13.java @@ -328,7 +328,6 @@ public class EntityPackets1_13 extends LegacyEntityRewriter