From 401061bbcdf0930a031c81a2af72789b8face164 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 26 Nov 2016 20:12:57 +1300 Subject: [PATCH] Bad fix for fishing hook --- src/me/libraryaddict/disguise/utilities/PacketsManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index a5738f1d..067bdb67 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -456,9 +456,9 @@ public class PacketsManager { if (disguise.getType() == DisguiseType.FALLING_BLOCK) { data = ReflectionManager.getCombinedId(((MiscDisguise) disguise).getId(), data); } - else if (disguise.getType() == DisguiseType.FISHING_HOOK && data == 0) { + else if (disguise.getType() == DisguiseType.FISHING_HOOK && data == -1) { // If the MiscDisguise data isn't set. Then no entity id was provided, so default to the owners entity id - data = disguisedEntity.getEntityId(); + data = observer.getEntityId(); } else if (disguise.getType() == DisguiseType.ITEM_FRAME) { data = ((((int) loc.getYaw() % 360) + 720 + 45) / 90) % 4;