mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +00:00
FallingBlock: fixed state not being saved
This commit is contained in:
parent
69c54e789a
commit
8fa196efc9
@ -134,6 +134,7 @@ class FallingBlock extends Entity{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function saveNBT() : void{
|
public function saveNBT() : void{
|
||||||
|
parent::saveNBT();
|
||||||
$this->namedtag->setInt("TileID", $this->block->getId(), true);
|
$this->namedtag->setInt("TileID", $this->block->getId(), true);
|
||||||
$this->namedtag->setByte("Data", $this->block->getDamage());
|
$this->namedtag->setByte("Data", $this->block->getDamage());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user