mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 02:09:42 +00:00
Explosion: fixed assert failure on explodeB()
This commit is contained in:
parent
87ce92d87e
commit
2a9586f6fd
@ -134,6 +134,7 @@ class Explosion{
|
||||
if($blastForce > 0){
|
||||
if(!isset($this->affectedBlocks[World::blockHash($vBlockX, $vBlockY, $vBlockZ)])){
|
||||
$_block = $blockFactory->fromFullBlock($state);
|
||||
$_block->position($this->world, $vBlockX, $vBlockY, $vBlockZ);
|
||||
foreach($_block->getAffectedBlocks() as $_affectedBlock){
|
||||
$_affectedBlockPos = $_affectedBlock->getPos();
|
||||
$this->affectedBlocks[World::blockHash($_affectedBlockPos->x, $_affectedBlockPos->y, $_affectedBlockPos->z)] = $_affectedBlock;
|
||||
|
Loading…
x
Reference in New Issue
Block a user