From bc934a8940d7188c2a07f82f73178432eb3b6a56 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sun, 9 Dec 2012 20:38:27 +0100 Subject: [PATCH] Fix for unknown map at server start --- classes/PocketMinecraftServer.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PocketMinecraftServer.class.php b/classes/PocketMinecraftServer.class.php index 86cfa7d0..9a2c61c9 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"];