mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 12:27:51 +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(){
|
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"));
|
$this->level = unserialize(file_get_contents($this->mapDir."level.dat"));
|
||||||
console("[INFO] Map: ".$this->level["LevelName"]);
|
console("[INFO] Map: ".$this->level["LevelName"]);
|
||||||
$this->time = (int) $this->level["Time"];
|
$this->time = (int) $this->level["Time"];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user