Entity: fixed network properties not updating when fireTicks changes

another bug that LBSG knew about, but didn't report. :/
This commit is contained in:
Dylan K. Taylor 2021-10-09 23:56:49 +01:00
parent c1f843a42c
commit aa53dc6709
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -681,10 +681,12 @@ abstract class Entity{
throw new \InvalidArgumentException("Fire ticks must be in range 0 ... " . 0x7fff . ", got $fireTicks");
}
$this->fireTicks = $fireTicks;
$this->networkPropertiesDirty = true;
}
public function extinguish() : void{
$this->fireTicks = 0;
$this->networkPropertiesDirty = true;
}
public function isFireProof() : bool{