Added all block hardness

This commit is contained in:
Shoghi Cervantes
2015-05-31 17:25:02 +02:00
parent f3c46b12c5
commit 26c9eed82e
86 changed files with 131 additions and 676 deletions

View File

@ -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;

View File

@ -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){