Fix players getting kicked when items are picked up

This commit is contained in:
libraryaddict 2024-09-25 13:04:54 +12:00
parent 9da938de30
commit 0b69fc4797

View File

@ -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");
}