mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Inventory->getItem(): Removed useless clones
this already returns a copy of the item anyway... wtf?
This commit is contained in:
@ -465,7 +465,7 @@ class PlayerInventory extends BaseInventory{
|
||||
|
||||
$pk = new InventorySlotPacket();
|
||||
$pk->inventorySlot = $index;
|
||||
$pk->item = clone $this->getItem($index);
|
||||
$pk->item = $this->getItem($index);
|
||||
|
||||
foreach($target as $player){
|
||||
if($player === $this->getHolder()){
|
||||
|
Reference in New Issue
Block a user