diff --git a/src/Sandertv/BlockSniper/cloning/CloneStorer.php b/src/Sandertv/BlockSniper/cloning/CloneStorer.php index f0af305d..5aa4badc 100644 --- a/src/Sandertv/BlockSniper/cloning/CloneStorer.php +++ b/src/Sandertv/BlockSniper/cloning/CloneStorer.php @@ -40,9 +40,8 @@ public function saveCopy(array $blocks) { } public function unsetCopy() { - foreach($this->copyStore as $blocks) { - unset($blocks); - } + unset($this->copyStore); + $this->copyStore = []; } // Required for math to copy-paste it on the location looked at.