mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fix for spawn point
This commit is contained in:
parent
0cb8f28122
commit
9f3523a920
@ -348,7 +348,7 @@ class Generator{
|
||||
"RandomSeed" => $this->seed,
|
||||
"SpawnX" => $s[0],
|
||||
"SpawnY" => $s[1],
|
||||
"SpawnX" => $s[2],
|
||||
"SpawnZ" => $s[2],
|
||||
);
|
||||
file_put_contents($dir."level.dat", serialize($level));
|
||||
}
|
||||
|
@ -228,6 +228,7 @@ class PocketMinecraftServer extends stdClass{
|
||||
$this->seed = (int) $this->level["RandomSeed"];
|
||||
$this->spawn = array("x" => $level["SpawnX"], "y" => $level["SpawnY"], "z" => $level["SpawnZ"]);
|
||||
$this->level["Time"] = &$this->time;
|
||||
console("[INFO] Spawn: X ".$level["SpawnX"]." Y ".$level["SpawnY"]." Z ".$level["SpawnZ"]);
|
||||
console("[INFO] Time: ".$this->time);
|
||||
console("[INFO] Seed: ".$this->seed);
|
||||
console("[INFO] Gamemode: ".($this->gamemode === 0 ? "survival":"creative"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user