mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Fixed #3266
This commit is contained in:
parent
df7eaa7242
commit
6e41e6837f
@ -843,7 +843,7 @@ abstract class Entity extends Location implements Metadatable{
|
|||||||
$this->fireTicks = 0;
|
$this->fireTicks = 0;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if(!$this->hasEffect(Effect::FIRE_RESISTANCE) and ($this->fireTicks % 20) === 0 or $tickDiff > 20){
|
if(!$this->hasEffect(Effect::FIRE_RESISTANCE) and (($this->fireTicks % 20) === 0 or $tickDiff > 20)){
|
||||||
$ev = new EntityDamageEvent($this, EntityDamageEvent::CAUSE_FIRE_TICK, 1);
|
$ev = new EntityDamageEvent($this, EntityDamageEvent::CAUSE_FIRE_TICK, 1);
|
||||||
$this->attack($ev->getFinalDamage(), $ev);
|
$this->attack($ev->getFinalDamage(), $ev);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user