mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +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;
|
||||
|
@ -1538,7 +1538,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$drops[$k] = Item::get($i[0], $i[1], $i[2]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$above = $this->getBlock(new Vector3($target->x, $target->y + 1, $target->z));
|
||||
if($above !== null){
|
||||
if($above->getId() === Item::FIRE){
|
||||
|
Reference in New Issue
Block a user