mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fix for unknown map at server start
This commit is contained in:
parent
f932003ff3
commit
bc934a8940
@ -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"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user