@@ -13,8 +13,8 @@ public function apply($content){//New Changes
13
13
$ content = str_replace ('parent::__construct($plugin); ' , ' ' , $ content );
14
14
$ content = str_replace ('isUnderWater ' , 'isUnderWater ' , $ content );
15
15
$ 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 );
18
18
$ content = str_replace ('setDamage ' , 'setModifier ' , $ content );
19
19
$ content = str_replace ('getDamage ' , 'getModifier ' , $ content );
20
20
$ content = str_replace ('getOriginalDamage ' , 'getOriginalModifier ' , $ content );
@@ -23,4 +23,4 @@ public function apply($content){//New Changes
23
23
public function ClassPath (){
24
24
return (new \ReflectionClass (static ::class))->getFileName ();
25
25
}
26
- }
26
+ }
0 commit comments