Skip to content

Commit

Permalink
Fix old copies blending with new copies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Feb 15, 2017
1 parent ce80778 commit f53fd66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Sandertv/BlockSniper/cloning/CloneStorer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f53fd66

Please sign in to comment.