mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Do not check type on actions
This commit is contained in:
parent
f5492aac91
commit
a91dee0e04
1 changed files with 1 additions and 1 deletions
|
|
@ -621,7 +621,7 @@ class PocketMinecraftServer{
|
||||||
$return = call_user_func($schedule[0], $schedule[1], $schedule[2]);
|
$return = call_user_func($schedule[0], $schedule[1], $schedule[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($action["repeat"] === 0 or $return === false){
|
if($action["repeat"] == 0 or $return === false){
|
||||||
$this->query("DELETE FROM actions WHERE ID = ".$action["ID"].";");
|
$this->query("DELETE FROM actions WHERE ID = ".$action["ID"].";");
|
||||||
$this->schedule[$cid] = null;
|
$this->schedule[$cid] = null;
|
||||||
unset($this->schedule[$cid]);
|
unset($this->schedule[$cid]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue