Explosion: make use of fromFullBlock()

this is in preparation for out-phasing legacy IDs.
This commit is contained in:
Dylan K. Taylor 2019-07-05 17:58:15 +01:00
parent ceeed57118
commit 124640737a

View File

@ -129,7 +129,7 @@ class Explosion{
$blastForce -= (BlockFactory::$blastResistance[$state] / 5 + 0.3) * $this->stepLen;
if($blastForce > 0){
if(!isset($this->affectedBlocks[$index = World::blockHash($vBlock->x, $vBlock->y, $vBlock->z)])){
$this->affectedBlocks[$index] = BlockFactory::get($state >> 4, $state & 0xf, $vBlock);
$this->affectedBlocks[$index] = BlockFactory::fromFullBlock($state, $vBlock);
}
}
}