Skip to content

Commit

Permalink
Fixed missing chunk crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonw4331 committed Jul 2, 2022
1 parent f5124ba commit cc5b2f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MyPlot/task/ClearPlotTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public function onRun() : void {
}

foreach($this->plugin->getPlotChunks($this->plot) as [$chunkX, $chunkZ, $chunk]) {
if($chunk === null)
continue;
foreach($chunk->getTiles() as $tile) {
$tile->close();
}
Expand Down

0 comments on commit cc5b2f8

Please sign in to comment.