From 0b69fc4797998bae8d74bc22be31abb611b0992f Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 25 Sep 2024 13:04:54 +1200 Subject: [PATCH] Fix players getting kicked when items are picked up --- .../me/libraryaddict/disguise/utilities/DisguiseUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index b3726ad3..6e24c66c 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -3029,7 +3029,7 @@ public class DisguiseUtilities { } else if (wrapper instanceof WrapperPlayServerAttachEntity) { return ((WrapperPlayServerAttachEntity) wrapper).getAttachedId(); } else if (wrapper instanceof WrapperPlayServerCollectItem) { - return ((WrapperPlayServerCollectItem) wrapper).getCollectedEntityId(); + return ((WrapperPlayServerCollectItem) wrapper).getCollectorEntityId(); } else { throw new IllegalStateException("The packet " + wrapper.getClass() + " has no entity ID"); }