Fix for unknown map at server start

This commit is contained in:
Shoghi Cervantes Pueyo 2012-12-09 20:38:27 +01:00
parent f932003ff3
commit bc934a8940

View File

@ -162,7 +162,7 @@ class PocketMinecraftServer{
}
private function loadMap(){
if($this->mapName !== false){
if($this->mapName !== false and trim($this->mapName) !== ""){
$this->level = unserialize(file_get_contents($this->mapDir."level.dat"));
console("[INFO] Map: ".$this->level["LevelName"]);
$this->time = (int) $this->level["Time"];