Fix world saving

This commit is contained in:
Dylan K. Taylor 2017-06-03 22:40:52 +01:00
parent c2186041d6
commit db93827650
3 changed files with 6 additions and 6 deletions

View File

@ -46,8 +46,8 @@ class Anvil extends McRegion{
$nbt->V = new ByteTag("V", 1);
$nbt->LastUpdate = new LongTag("LastUpdate", 0); //TODO
$nbt->InhabitedTime = new LongTag("InhabitedTime", 0); //TODO
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated());
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated());
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated() ? 1 : 0);
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated() ? 1 : 0);
$nbt->Sections = new ListTag("Sections", []);
$nbt->Sections->setTagType(NBT::TAG_Compound);

View File

@ -58,8 +58,8 @@ class McRegion extends BaseLevelProvider{
$nbt->zPos = new IntTag("zPos", $chunk->getZ());
$nbt->LastUpdate = new LongTag("LastUpdate", 0); //TODO
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated());
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated());
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated() ? 1 : 0);
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated() ? 1 : 0);
$ids = "";
$data = "";

View File

@ -49,8 +49,8 @@ class PMAnvil extends Anvil{
$nbt->V = new ByteTag("V", 1);
$nbt->LastUpdate = new LongTag("LastUpdate", 0); //TODO
$nbt->InhabitedTime = new LongTag("InhabitedTime", 0); //TODO
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated());
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated());
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated() ? 1 : 0);
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated() ? 1 : 0);
$nbt->Sections = new ListTag("Sections", []);
$nbt->Sections->setTagType(NBT::TAG_Compound);