Skip to content

Commit f53fd66

Browse files
committed
Fix old copies blending with new copies.
1 parent ce80778 commit f53fd66

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Sandertv/BlockSniper/cloning/CloneStorer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ public function saveCopy(array $blocks) {
4040
}
4141

4242
public function unsetCopy() {
43-
foreach($this->copyStore as $blocks) {
44-
unset($blocks);
45-
}
43+
unset($this->copyStore);
44+
$this->copyStore = [];
4645
}
4746

4847
// Required for math to copy-paste it on the location looked at.

0 commit comments

Comments
 (0)