mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Improved damage sources for projectiles, falling blocks, TNT, and items
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user