mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Dropped items and arrows get deleted on Y < 0
This commit is contained in:
@ -91,7 +91,8 @@ class Arrow extends Projectile{
|
||||
}
|
||||
|
||||
public function attack($damage, $source = EntityDamageEvent::CAUSE_MAGIC){
|
||||
|
||||
$this->setLastDamageCause($source);
|
||||
$this->setHealth($this->getHealth() - $damage);
|
||||
}
|
||||
|
||||
public function heal($amount){
|
||||
|
@ -112,7 +112,8 @@ class DroppedItem extends Entity{
|
||||
}
|
||||
|
||||
public function attack($damage, $source = EntityDamageEvent::CAUSE_MAGIC){
|
||||
|
||||
$this->setLastDamageCause($source);
|
||||
$this->setHealth($this->getHealth() - $damage);
|
||||
}
|
||||
|
||||
public function heal($amount){
|
||||
|
Reference in New Issue
Block a user