mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
@ -115,7 +115,9 @@ abstract class BaseInventory implements Inventory{
|
||||
$this->clear($i);
|
||||
}
|
||||
}else{
|
||||
$this->setItem($i, $items[$i]);
|
||||
if (!$this->setItem($i, $items[$i])){
|
||||
$this->clear($i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user