mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed Zombie drops crash
This commit is contained in:
parent
5e55c3a8f0
commit
72c09045d5
@ -83,7 +83,7 @@ class Zombie extends Monster{
|
||||
|
||||
public function getDrops(){
|
||||
$drops = [
|
||||
ItemItem::get(Item::FEATHER, 0, 1)
|
||||
ItemItem::get(ItemItem::FEATHER, 0, 1)
|
||||
];
|
||||
if($this->lastDamageCause instanceof EntityDamageByEntityEvent and $this->lastDamageCause->getEntity() instanceof Player){
|
||||
if(mt_rand(0, 199) < 5){
|
||||
|
Loading…
x
Reference in New Issue
Block a user