mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Fixed burning mobs not getting onfire data flag set when read from disk
they'd just flash red and take damage for no apparent reason
This commit is contained in:
parent
554096953b
commit
1dd2203ee5
@ -516,6 +516,9 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
|||||||
$this->namedtag->Fire = new ShortTag("Fire", 0);
|
$this->namedtag->Fire = new ShortTag("Fire", 0);
|
||||||
}
|
}
|
||||||
$this->fireTicks = (int) $this->namedtag["Fire"];
|
$this->fireTicks = (int) $this->namedtag["Fire"];
|
||||||
|
if($this->isOnFire()){
|
||||||
|
$this->setGenericFlag(self::DATA_FLAG_ONFIRE);
|
||||||
|
}
|
||||||
|
|
||||||
if(!isset($this->namedtag->Air)){
|
if(!isset($this->namedtag->Air)){
|
||||||
$this->namedtag->Air = new ShortTag("Air", 300);
|
$this->namedtag->Air = new ShortTag("Air", 300);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user