mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Dropped items and arrows get deleted on Y < 0
This commit is contained in:
parent
c40f9f65a5
commit
472431752b
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user