mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 12:27:51 +00:00
Entity: fixed network properties not updating when fireTicks changes
another bug that LBSG knew about, but didn't report. :/
This commit is contained in:
parent
c1f843a42c
commit
aa53dc6709
@ -681,10 +681,12 @@ abstract class Entity{
|
|||||||
throw new \InvalidArgumentException("Fire ticks must be in range 0 ... " . 0x7fff . ", got $fireTicks");
|
throw new \InvalidArgumentException("Fire ticks must be in range 0 ... " . 0x7fff . ", got $fireTicks");
|
||||||
}
|
}
|
||||||
$this->fireTicks = $fireTicks;
|
$this->fireTicks = $fireTicks;
|
||||||
|
$this->networkPropertiesDirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function extinguish() : void{
|
public function extinguish() : void{
|
||||||
$this->fireTicks = 0;
|
$this->fireTicks = 0;
|
||||||
|
$this->networkPropertiesDirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isFireProof() : bool{
|
public function isFireProof() : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user