mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
99d4ff5bdb
@ -436,7 +436,7 @@ abstract class Entity extends Position implements Metadatable{
|
||||
}
|
||||
}else{
|
||||
if(($this->fireTicks % 20) === 0){
|
||||
$this->attack(1, "onFire");
|
||||
$this->attack(1, EntityDamageEvent::CAUSE_FIRE_TICK);
|
||||
}
|
||||
--$this->fireTicks;
|
||||
}
|
||||
@ -444,7 +444,7 @@ abstract class Entity extends Position implements Metadatable{
|
||||
}
|
||||
|
||||
if($this->handleLavaMovement()){
|
||||
$this->attack(4, "lava");
|
||||
$this->attack(4, EntityDamageEvent::CAUSE_LAVA);
|
||||
$this->setOnFire(15);
|
||||
$hasUpdate = true;
|
||||
$this->fallDistance *= 0.5;
|
||||
@ -1050,4 +1050,4 @@ abstract class Entity extends Position implements Metadatable{
|
||||
$this->server->getEntityMetadata()->removeMetadata($this, $metadataKey, $plugin);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user