diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/v1_10to1_11/rewriter/EntityPacketRewriter1_11.java b/common/src/main/java/com/viaversion/viaversion/protocols/v1_10to1_11/rewriter/EntityPacketRewriter1_11.java index 7ba3ee4ba..19d8919bb 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/v1_10to1_11/rewriter/EntityPacketRewriter1_11.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/v1_10to1_11/rewriter/EntityPacketRewriter1_11.java @@ -20,6 +20,7 @@ package com.viaversion.viaversion.protocols.v1_10to1_11.rewriter; import com.viaversion.nbt.tag.CompoundTag; import com.viaversion.nbt.tag.StringTag; import com.viaversion.viaversion.api.Via; +import com.viaversion.viaversion.api.minecraft.entities.EntityTypes1_10; import com.viaversion.viaversion.api.minecraft.entities.EntityTypes1_11; import com.viaversion.viaversion.api.minecraft.entities.EntityTypes1_11.EntityType; import com.viaversion.viaversion.api.minecraft.item.DataItem; @@ -53,8 +54,20 @@ public class EntityPacketRewriter1_11 extends EntityRewriter { + byte type = wrapper.get(Types.BYTE, 0); + if (type == EntityTypes1_10.ObjectType.FISHIHNG_HOOK.getId()) { + tryFixFishingHookVelocity(wrapper); + } + }); handler(objectTrackerHandler()); } }); @@ -132,6 +145,11 @@ public class EntityPacketRewriter1_11 extends EntityRewriter { + wrapper.passthrough(Types.VAR_INT); // Entity id + tryFixFishingHookVelocity(wrapper); + }); + registerRemoveEntities(ClientboundPackets1_9_3.REMOVE_ENTITIES); protocol.registerClientbound(ClientboundPackets1_9_3.BLOCK_ENTITY_DATA, new PacketHandlers() { @@ -243,6 +261,17 @@ public class EntityPacketRewriter1_11 extends EntityRewriter