Improved damage sources for projectiles, falling blocks, TNT, and items

This commit is contained in:
Shoghi Cervantes
2015-05-31 14:19:47 +02:00
parent 9e14435dbb
commit 14ff537e71
4 changed files with 20 additions and 4 deletions

View File

@ -47,7 +47,9 @@ class PrimedTNT extends Entity implements Explosive{
public function attack($damage, EntityDamageEvent $source){
if($source->getCause() === EntityDamageEvent::CAUSE_VOID){
parent::attack($damage, $source);
}
}
protected function initEntity(){