MCServer world compatiblity with vanilla and mcedit.

Iknowright.jpg

--- Original Message ---

From: "Franz Reiter" <notifications@github.com>
Sent: September 24, 2014 2:04 PM
To: "mc-server/MCServer" <MCServer@noreply.github.com>
Cc: "Tiger Wang" <ziwei.tiger@hotmail.co.uk>
Subject: Re: [MCServer] MCServer world compatiblity with vanilla and mcedit. (#1449)

> @@ -96,10 +96,26 @@ cWSSAnvil::cWSSAnvil(cWorld * a_World, int a_CompressionFactor) :
>       if (!cFile::Exists(fnam))
>       {
>               cFastNBTWriter Writer;
> -             Writer.BeginCompound("");
> -             Writer.AddInt("SpawnX", (int)(a_World->GetSpawnX()));
> -             Writer.AddInt("SpawnY", (int)(a_World->GetSpawnY()));
> -             Writer.AddInt("SpawnZ", (int)(a_World->GetSpawnZ()));
> +             Writer.BeginCompound("Data");
> +             Writer.AddByte("allowCommands", 1);
> +             Writer.AddByte("Difficulty", 2);
> +             Writer.AddByte("hardcore", 0);

The useless hardcore is in the server software but the difficulty in a plugin? What?

---
Reply to this email directly or view it on GitHub:
https://github.com/mc-server/MCServer/pull/1449/files#r17969402