Merge branch 'next-minor' of github.com:pmmp/PocketMine-MP into next-minor

This commit is contained in:
Dylan K. Taylor 2022-05-10 14:30:21 +01:00
commit 6da53536ca
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -148,6 +148,9 @@ class Leaves extends Transparent{
if(($this->treeType->equals(TreeType::OAK()) || $this->treeType->equals(TreeType::DARK_OAK())) && mt_rand(1, 200) === 1){ //Apples
$drops[] = VanillaItems::APPLE();
}
if(mt_rand(1, 50) === 1){
$drops[] = VanillaItems::STICK()->setCount(mt_rand(1, 2));
}
return $drops;
}