Skip to content

Commit 5308f14

Browse files
committed
Fix replace and pasteasset
1 parent 64e4fad commit 5308f14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/xenialdan/MagicWE2/task/AsyncPasteAssetTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function onRun(): void
7272
/** @var Selection $selection */
7373
$selection = igbinary_unserialize($this->selection/*, ['allowed_classes' => [Selection::class]]*/);//TODO test pm4
7474

75-
$manager = $selection->getIterator()->getManager();
75+
$manager = $this->manager;
7676
// unset($touchedChunks);
7777

7878
//$selection = igbinary_unserialize($this->selection/*, ['allowed_classes' => [Selection::class]]*/);//TODO test pm4

src/xenialdan/MagicWE2/task/AsyncReplaceTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function onRun(): void
6262
/** @var Selection $selection */
6363
$selection = igbinary_unserialize($this->selection/*, ['allowed_classes' => [Selection::class]]*/);//TODO test pm4
6464

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

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

0 commit comments

Comments
 (0)