From d71167f66cfa10b59cd46c7133820583e006fc69 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Thu, 3 Jan 2013 00:57:32 +0100 Subject: [PATCH] Added generator name to level.dat --- src/classes/Generator.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/classes/Generator.class.php b/src/classes/Generator.class.php index b2caac306..b1d17663e 100644 --- a/src/classes/Generator.class.php +++ b/src/classes/Generator.class.php @@ -26,10 +26,11 @@ the Free Software Foundation, either version 3 of the License, or */ class WorldGenerator{ - private $gen, $seed, $raw; + private $gen, $seed, $genName, $raw; public function __construct($genName, $seed){ $this->seed = (int) $seed; $this->raw = b""; + $this->genName = $genName; $this->gen = new $genName($this->seed); } @@ -345,6 +346,7 @@ class WorldGenerator{ "Time" => 0, "Gamemode" => 1, "RandomSeed" => $this->seed, + "Generator" => $this->genName, "SpawnX" => $s[0], "SpawnY" => $s[1], "SpawnZ" => $s[2],