mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 11:45:30 +00:00
Do not check type on actions
This commit is contained in:
parent
f5492aac91
commit
a91dee0e04
@ -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…
x
Reference in New Issue
Block a user