mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Fixed PlayerInventory in_array recursion issue, close #1008
This is INTENDED BEHAVIOUR for comparing objects?????
This commit is contained in:
parent
b9a87ed147
commit
6ea0eb47ec
@ -245,7 +245,7 @@ class PlayerInventory extends BaseInventory{
|
||||
}
|
||||
}else{
|
||||
$this->getHolder()->getLevel()->getServer()->broadcastPacket($target, $pk);
|
||||
if($this->getHeldItemSlot() !== -1 and in_array($this->getHolder(), $target)){
|
||||
if($this->getHeldItemSlot() !== -1 and in_array($this->getHolder(), $target, true)){
|
||||
$this->sendSlot($this->getHeldItemSlot(), $this->getHolder());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user