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

@ -78,7 +78,9 @@ class FallingSand extends Entity{
}
public function attack($damage, EntityDamageEvent $source){
if($source->getCause() === EntityDamageEvent::CAUSE_VOID){
parent::attack($damage, $source);
}
}
public function onUpdate($currentTick){