Do not check type on actions

This commit is contained in:
Shoghi Cervantes 2013-08-22 02:34:57 +02:00
parent f5492aac91
commit a91dee0e04

View File

@ -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]);