Skip to content

Commit 8d58d46

Browse files
authored
Never do Copy paste again, Ready to release on Poggit
1 parent ee84c9d commit 8d58d46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ApiUpdater/NewAPIChanges.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public function apply($content){//New Changes
1313
$content = str_replace('parent::__construct($plugin);', ' ', $content);
1414
$content = str_replace('isUnderWater', 'isUnderWater', $content);
1515
$content = str_replace('$this->getServer()->getScheduler()', '$this->getScheduler()', $content);
16-
$content = str_replace('$this->getServer()->getAsyncPool()->submitTask', '$this->getServer()->getAsyncPool()->submitTask', $content);
17-
$content = str_replace('$this->getServer()->getAsyncPool()->submitTasktoWorker', '$this->getServer()->getAsyncPool()->submitTasktoWorker', $content);
16+
$content = str_replace("$this->getServer()->getScheduler()->scheduleAsyncTask", "$this->getServer()->getAsyncPool()->submitTask", $content);
17+
$content = str_replace("$this->getServer()->getScheduler()->scheduleAsyncTaskToWorker", "$this->getServer()->getAsyncPool()->submitTasktoWorker", $content);
1818
$content = str_replace('setDamage', 'setModifier', $content);
1919
$content = str_replace('getDamage', 'getModifier', $content);
2020
$content = str_replace('getOriginalDamage', 'getOriginalModifier', $content);
@@ -23,4 +23,4 @@ public function apply($content){//New Changes
2323
public function ClassPath(){
2424
return (new \ReflectionClass(static::class))->getFileName();
2525
}
26-
}
26+
}

0 commit comments

Comments
 (0)