mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Refactor Block->getResistance() -> Block->getBlastResistance() and added some documentation
This commit is contained in:
@ -95,7 +95,7 @@ class Explosion{
|
||||
$block = $this->level->getBlock($vBlock);
|
||||
|
||||
if($block->getId() !== 0){
|
||||
$blastForce -= ($block->getResistance() / 5 + 0.3) * $this->stepLen;
|
||||
$blastForce -= ($block->getBlastResistance() / 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