mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
Explosion: set block damage to zero on destruction
This commit is contained in:
parent
554fe4d14d
commit
96d26a77a1
@ -212,6 +212,7 @@ class Explosion{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->level->setBlockIdAt($block->x, $block->y, $block->z, 0);
|
$this->level->setBlockIdAt($block->x, $block->y, $block->z, 0);
|
||||||
|
$this->level->setBlockDataAt($block->x, $block->y, $block->z, 0);
|
||||||
|
|
||||||
$t = $this->level->getTileAt($block->x, $block->y, $block->z);
|
$t = $this->level->getTileAt($block->x, $block->y, $block->z);
|
||||||
if($t instanceof Tile){
|
if($t instanceof Tile){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user