mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed tickerfunction x2
This commit is contained in:
parent
78d2b95b9a
commit
6a12ca1a9b
1 changed files with 4 additions and 0 deletions
|
|
@ -618,7 +618,11 @@ class PocketMinecraftServer{
|
|||
$this->preparedSQL->updateAction->execute();
|
||||
if(isset($this->schedule[$cid]) && is_array($this->schedule[$cid]) && isset($this->schedule[$cid][0]) && is_callable($this->schedule[$cid][0])){
|
||||
++$actionCount;
|
||||
try{
|
||||
$return = @call_user_func($this->schedule[$cid][0] ?? function(){}, $this->schedule[$cid][1], $this->schedule[$cid][2]); //somehow args can be null
|
||||
}catch(ValueError $e){
|
||||
$return = false;
|
||||
}
|
||||
}else{
|
||||
$return = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue