mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Improved damage sources for projectiles, falling blocks, TNT, and items
This commit is contained in:
@ -52,9 +52,10 @@ abstract class Projectile extends Entity{
|
||||
parent::__construct($chunk, $nbt);
|
||||
}
|
||||
|
||||
|
||||
public function attack($damage, EntityDamageEvent $source){
|
||||
|
||||
if($source->getCause() === EntityDamageEvent::CAUSE_VOID){
|
||||
parent::attack($damage, $source);
|
||||
}
|
||||
}
|
||||
|
||||
protected function initEntity(){
|
||||
|
Reference in New Issue
Block a user