Fixed Zombie drops crash

This commit is contained in:
Shoghi Cervantes 2014-10-29 13:21:54 +01:00
parent 5e55c3a8f0
commit 72c09045d5

View File

@ -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){