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