mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Merge branch 'stable' into master
# Conflicts: # resources/vanilla # src/world/Explosion.php
This commit is contained in:
commit
62394811e3
@ -228,7 +228,10 @@ class Explosion{
|
|||||||
$this->world->setBlockAt($pos->x, $pos->y, $pos->z, $airBlock, false); //TODO: should updating really be disabled here?
|
$this->world->setBlockAt($pos->x, $pos->y, $pos->z, $airBlock, false); //TODO: should updating really be disabled here?
|
||||||
$this->world->updateAllLight($pos->x, $pos->y, $pos->z);
|
$this->world->updateAllLight($pos->x, $pos->y, $pos->z);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach($this->affectedBlocks as $block){
|
||||||
|
$pos = $block->getPos();
|
||||||
foreach(Facing::ALL as $side){
|
foreach(Facing::ALL as $side){
|
||||||
$sideBlock = $pos->getSide($side);
|
$sideBlock = $pos->getSide($side);
|
||||||
if(!$this->world->isInWorld($sideBlock->x, $sideBlock->y, $sideBlock->z)){
|
if(!$this->world->isInWorld($sideBlock->x, $sideBlock->y, $sideBlock->z)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user