mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Added all block hardness
This commit is contained in:
@ -110,7 +110,7 @@ class Explosion{
|
||||
$block = $this->level->getBlock($vBlock);
|
||||
|
||||
if($block->getId() !== 0){
|
||||
$blastForce -= ($block->getHardness() / 5 + 0.3) * $this->stepLen;
|
||||
$blastForce -= ($block->getResistance() / 5 + 0.3) * $this->stepLen;
|
||||
if($blastForce > 0){
|
||||
if(!isset($this->affectedBlocks[$index = Level::blockHash($block->x, $block->y, $block->z)])){
|
||||
$this->affectedBlocks[$index] = $block;
|
||||
|
Reference in New Issue
Block a user