Fixed a few missing methods due to multiworld conversion

This commit is contained in:
Zhuowei Zhang 2013-05-16 19:03:18 -07:00
parent 7bbda6dd67
commit 4678b57c75
3 changed files with 5 additions and 5 deletions

View file

@ -123,7 +123,7 @@ class TimeAPI{
}
public function set($time, $level = false){
if(($level instanceof Level)){
if(!($level instanceof Level)){
$level = $this->server->api->level->getDefault();
}
if(is_string($time) and isset($this->phases[$time])){
@ -135,4 +135,4 @@ class TimeAPI{
}
}
}