Skip to content
This repository was archived by the owner on Oct 29, 2022. It is now read-only.

Commit cc5b2f8

Browse files
committed
Fixed missing chunk crash
1 parent f5124ba commit cc5b2f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MyPlot/task/ClearPlotTask.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ public function onRun() : void {
106106
}
107107

108108
foreach($this->plugin->getPlotChunks($this->plot) as [$chunkX, $chunkZ, $chunk]) {
109+
if($chunk === null)
110+
continue;
109111
foreach($chunk->getTiles() as $tile) {
110112
$tile->close();
111113
}

0 commit comments

Comments
 (0)