mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Explosion: don't depend on air having stateID 0
This commit is contained in:
@ -130,8 +130,9 @@ class Explosion{
|
||||
|
||||
$state = $this->subChunkExplorer->currentSubChunk->getFullBlock($vBlockX & 0x0f, $vBlockY & 0x0f, $vBlockZ & 0x0f);
|
||||
|
||||
if($state !== 0){
|
||||
$blastForce -= ($blockFactory->blastResistance[$state] / 5 + 0.3) * $this->stepLen;
|
||||
$blastResistance = $blockFactory->blastResistance[$state];
|
||||
if($blastResistance >= 0){
|
||||
$blastForce -= ($blastResistance / 5 + 0.3) * $this->stepLen;
|
||||
if($blastForce > 0){
|
||||
if(!isset($this->affectedBlocks[World::blockHash($vBlockX, $vBlockY, $vBlockZ)])){
|
||||
$_block = $blockFactory->fromFullBlock($state);
|
||||
|
Reference in New Issue
Block a user