mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fix for unknown map at server start
This commit is contained in:
parent
f932003ff3
commit
bc934a8940
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue