From 4361ebe636404d5be2c7001753cc2d64eca7eb85 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 21 Oct 2021 09:12:51 +0200 Subject: [PATCH] Use correct meta type --- .../protocol1_17_1to1_18/packets/EntityPackets1_18.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_17_1to1_18/packets/EntityPackets1_18.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_17_1to1_18/packets/EntityPackets1_18.java index fcf2c77a..81349cca 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_17_1to1_18/packets/EntityPackets1_18.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_17_1to1_18/packets/EntityPackets1_18.java @@ -23,7 +23,6 @@ import com.viaversion.viaversion.api.minecraft.entities.Entity1_17Types; import com.viaversion.viaversion.api.minecraft.entities.EntityType; import com.viaversion.viaversion.api.minecraft.metadata.MetaType; import com.viaversion.viaversion.api.minecraft.metadata.types.MetaType1_17; -import com.viaversion.viaversion.api.minecraft.metadata.types.MetaType1_18; import com.viaversion.viaversion.api.protocol.remapper.PacketRemapper; import com.viaversion.viaversion.api.type.Type; import com.viaversion.viaversion.api.type.types.Particle; @@ -107,10 +106,10 @@ public final class EntityPackets1_18 extends EntityRewriter { - meta.setMetaType(MetaType1_18.byId(meta.metaType().typeId())); + meta.setMetaType(MetaType1_17.byId(meta.metaType().typeId())); MetaType type = meta.metaType(); - if (type == MetaType1_18.PARTICLE) { + if (type == MetaType1_17.PARTICLE) { Particle particle = (Particle) meta.getValue(); if (particle.getId() == 3) { // Block marker Particle.ParticleData data = particle.getArguments().remove(0);