mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
Explosion: make use of fromFullBlock()
this is in preparation for out-phasing legacy IDs.
This commit is contained in:
parent
ceeed57118
commit
124640737a
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user