mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
Fix typo in explosion (#700)
This commit is contained in:
parent
5863d001bd
commit
dda47ee566
@ -201,7 +201,7 @@ class Explosion{
|
|||||||
|
|
||||||
$pos = new Vector3($block->x, $block->y, $block->z);
|
$pos = new Vector3($block->x, $block->y, $block->z);
|
||||||
|
|
||||||
for($side = 0; $side < 5; $side++){
|
for($side = 0; $side <= 5; $side++){
|
||||||
$sideBlock = $pos->getSide($side);
|
$sideBlock = $pos->getSide($side);
|
||||||
if(!isset($this->affectedBlocks[$index = Level::blockHash($sideBlock->x, $sideBlock->y, $sideBlock->z)]) and !isset($updateBlocks[$index])){
|
if(!isset($this->affectedBlocks[$index = Level::blockHash($sideBlock->x, $sideBlock->y, $sideBlock->z)]) and !isset($updateBlocks[$index])){
|
||||||
$this->level->getServer()->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->level->getBlock($sideBlock)));
|
$this->level->getServer()->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->level->getBlock($sideBlock)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user