mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +00:00
fix drop chance of rotten flesh
This commit is contained in:
parent
f25255e46c
commit
3ed8855894
@ -40,7 +40,7 @@ class Zombie extends Monster{
|
|||||||
|
|
||||||
public function getDrops() : array{
|
public function getDrops() : array{
|
||||||
$drops = [
|
$drops = [
|
||||||
ItemFactory::get(ItemItem::ROTTEN_FLESH, 0, 1)
|
ItemFactory::get(ItemItem::ROTTEN_FLESH, 0, mt_rand(0, 2))
|
||||||
];
|
];
|
||||||
|
|
||||||
if(mt_rand(0, 199) < 5){
|
if(mt_rand(0, 199) < 5){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user