This commit is contained in:
Shoghi Cervantes 2014-10-04 23:16:35 +02:00
parent b0c40dc1ab
commit 5e03e157ad
2 changed files with 0 additions and 11 deletions

View File

@ -47,7 +47,6 @@ class Lava extends Liquid{
if(!$ev->isCancelled()){
$entity->attack($ev->getFinalDamage(), $ev);
}
$entity->attack(4, EntityDamageEvent::CAUSE_LAVA);
}
public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){

View File

@ -35,14 +35,4 @@ class StillLava extends Lava{
return null;
}
public function onEntityCollide(Entity $entity){
$entity->setOnFire(15);
$ev = new EntityDamageEvent($entity, EntityDamageEvent::CAUSE_LAVA, 4);
Server::getInstance()->getPluginManager()->callEvent($ev);
if(!$ev->isCancelled()){
$entity->attack($ev->getFinalDamage(), $ev);
}
$entity->attack(4, EntityDamageEvent::CAUSE_LAVA);
}
}