diff --git a/src/network/protocol/packet/TakeItemEntityPacket.php b/src/network/protocol/packet/TakeItemEntityPacket.php index c64095d9..d3e6b949 100644 --- a/src/network/protocol/packet/TakeItemEntityPacket.php +++ b/src/network/protocol/packet/TakeItemEntityPacket.php @@ -23,7 +23,7 @@ class TakeItemEntityPacket extends RakNetDataPacket{ if(!$this->localEids){ $this->localEids = true; $this->eid = $p->global2localEID[$this->eid] ?? false; - $this->target = $p->global2localEID[$this->eid] ?? false; + $this->target = $p->global2localEID[$this->target] ?? false; if($this->eid === false || $this->target === false) return false; } return true;