BlockHorizons / BlockSniper

An advanced (brush) world editing plugin for PocketMine-MP
https://poggit.pmmp.io/p/BlockSniper/
Apache License 2.0
76 stars 41 forks source link

Chunk not found for block #152

Open alvin0319 opened 2 years ago

alvin0319 commented 2 years ago

Description

When the player try to brush to an ungenerated chunk (or unloaded), the following error occurs and unable to use brush:

[20:14:05.991] [Server thread/CRITICAL]: Could not execute asynchronous task BrushTask: Task crashed
[20:14:05.988] [AsyncWorker#1 thread/CRITICAL]: InvalidArgumentException: "chunk not found for block" (EXCEPTION) in "/home/matrix/matrix/plugins/BlockSniper_dev-654.phar/src/BlockHorizons/BlockSniper/brush/async/tasks/BrushTask" at line 120
--- Stack trace ---
  #0 /home/matrix/matrix/plugins/BlockSniper_dev-654.phar/src/BlockHorizons/BlockSniper/brush/type/DrainType(25): BlockHorizons\BlockSniper\brush\async\tasks\BrushTask->blocks(object BlockHorizons\BlockSniper\brush\shape\SphereShape#71673, array[19])
  #1 /home/matrix/matrix/plugins/BlockSniper_dev-654.phar/src/BlockHorizons/BlockSniper/brush/async/tasks/BrushTask(98): BlockHorizons\BlockSniper\brush\type\DrainType->fill()
  #2 pmsrc/src/scheduler/AsyncTask(84): BlockHorizons\BlockSniper\brush\async\tasks\BrushTask->onRun()
  #3 (): pocketmine\scheduler\AsyncTask->run()
--- End of exception information ---

Versions

Crashdump and/or console errors

[20:14:05.991] [Server thread/CRITICAL]: Could not execute asynchronous task BrushTask: Task crashed
[20:14:05.988] [AsyncWorker#1 thread/CRITICAL]: InvalidArgumentException: "chunk not found for block" (EXCEPTION) in "/home/matrix/matrix/plugins/BlockSniper_dev-654.phar/src/BlockHorizons/BlockSniper/brush/async/tasks/BrushTask" at line 120
--- Stack trace ---
  #0 /home/matrix/matrix/plugins/BlockSniper_dev-654.phar/src/BlockHorizons/BlockSniper/brush/type/DrainType(25): BlockHorizons\BlockSniper\brush\async\tasks\BrushTask->blocks(object BlockHorizons\BlockSniper\brush\shape\SphereShape#71673, array[19])
  #1 /home/matrix/matrix/plugins/BlockSniper_dev-654.phar/src/BlockHorizons/BlockSniper/brush/async/tasks/BrushTask(98): BlockHorizons\BlockSniper\brush\type\DrainType->fill()
  #2 pmsrc/src/scheduler/AsyncTask(84): BlockHorizons\BlockSniper\brush\async\tasks\BrushTask->onRun()
  #3 (): pocketmine\scheduler\AsyncTask->run()
--- End of exception information ---