diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java index b62839f91..d0a9ba136 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java @@ -111,13 +111,12 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter { - int id = meta.metaType().typeId(); + filter().mapMetaType(typeId -> { + int id = typeId; if (id >= Types1_20_5.META_TYPES.armadilloState.typeId()) { id++; } - - meta.setMetaType(Types1_20_5.META_TYPES.byId(id)); + return Types1_20_5.META_TYPES.byId(id); }); registerMetaTypeHandler( @@ -127,7 +126,7 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter { + filter().type(EntityTypes1_20_5.MINECART_ABSTRACT).index(11).handler((event, meta) -> { final int blockState = meta.value(); meta.setValue(protocol.getMappingData().getNewBlockStateId(blockState)); });