fixed target eid being incorrect in TakeItemPacket after converting

This commit is contained in:
GameHerobrine 2025-07-01 10:37:30 +03:00
parent 5fb979cb2d
commit 26fc61d3c0

View file

@ -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;