FallingBlock: fixed state not being saved

This commit is contained in:
Dylan K. Taylor 2018-08-07 18:48:52 +01:00
parent 69c54e789a
commit 8fa196efc9

View File

@ -134,6 +134,7 @@ class FallingBlock extends Entity{
}
public function saveNBT() : void{
parent::saveNBT();
$this->namedtag->setInt("TileID", $this->block->getId(), true);
$this->namedtag->setByte("Data", $this->block->getDamage());
}