mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2025-01-06 19:09:27 +01:00
Fix players getting kicked when items are picked up
This commit is contained in:
parent
9da938de30
commit
0b69fc4797
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user