mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Block: Drop unnecessary parameters for ItemFactory::get()
This commit is contained in:
@ -179,7 +179,7 @@ class Leaves extends Transparent{
|
||||
$drops[] = $this->getSaplingItem();
|
||||
}
|
||||
if($this->canDropApples() and mt_rand(1, 200) === 1){ //Apples
|
||||
$drops[] = ItemFactory::get(Item::APPLE, 0, 1);
|
||||
$drops[] = ItemFactory::get(Item::APPLE);
|
||||
}
|
||||
|
||||
return $drops;
|
||||
|
Reference in New Issue
Block a user