Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
VixikHD committed Dec 5, 2021
1 parent b092efc commit 8157a6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/czechpmdevs/buildertools/editors/object/FillSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@

use czechpmdevs\buildertools\blockstorage\BlockArray;
use czechpmdevs\buildertools\BuilderTools;
use Error;
use pocketmine\block\BlockFactory;
use pocketmine\utils\AssumptionFailedError;
use pocketmine\world\ChunkManager;
use pocketmine\world\utils\SubChunkExplorer;
use pocketmine\world\World;
use Throwable;

class FillSession {

Expand Down Expand Up @@ -223,7 +223,7 @@ protected function moveTo(int $x, int $y, int $z): bool {
try {
/** @phpstan-ignore-next-line */
$this->explorer->currentSubChunk = $this->explorer->currentChunk->getSubChunk($y >> 4);
} catch(Error) { // For the case if chunk is null
} catch(Throwable) { // For the case if chunk is null or y coordinate is less than 0
$this->error = true;
return false;
}
Expand Down

0 comments on commit 8157a6d

Please sign in to comment.