Skip to content

Commit

Permalink
Fix replace and pasteasset
Browse files Browse the repository at this point in the history
  • Loading branch information
inxomnyaa committed Oct 5, 2022
1 parent 64e4fad commit 5308f14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xenialdan/MagicWE2/task/AsyncPasteAssetTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function onRun(): void
/** @var Selection $selection */
$selection = igbinary_unserialize($this->selection/*, ['allowed_classes' => [Selection::class]]*/);//TODO test pm4

$manager = $selection->getIterator()->getManager();
$manager = $this->manager;
// unset($touchedChunks);

//$selection = igbinary_unserialize($this->selection/*, ['allowed_classes' => [Selection::class]]*/);//TODO test pm4
Expand Down
2 changes: 1 addition & 1 deletion src/xenialdan/MagicWE2/task/AsyncReplaceTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function onRun(): void
/** @var Selection $selection */
$selection = igbinary_unserialize($this->selection/*, ['allowed_classes' => [Selection::class]]*/);//TODO test pm4

$manager = $selection->getIterator()->getManager();
$manager = $this->manager;

$oldBlocks = iterator_to_array($this->execute($manager, $selection, $this->searchBlocks, $this->replaceBlocks, $changed));

Expand Down

0 comments on commit 5308f14

Please sign in to comment.