diff --git a/classes/PocketMinecraftServer.class.php b/classes/PocketMinecraftServer.class.php index 86cfa7d01..9a2c61c93 100644 --- a/classes/PocketMinecraftServer.class.php +++ b/classes/PocketMinecraftServer.class.php @@ -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"];