mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-20 10:00:31 +00:00
Fix world saving
This commit is contained in:
parent
c2186041d6
commit
db93827650
@ -46,8 +46,8 @@ class Anvil extends McRegion{
|
|||||||
$nbt->V = new ByteTag("V", 1);
|
$nbt->V = new ByteTag("V", 1);
|
||||||
$nbt->LastUpdate = new LongTag("LastUpdate", 0); //TODO
|
$nbt->LastUpdate = new LongTag("LastUpdate", 0); //TODO
|
||||||
$nbt->InhabitedTime = new LongTag("InhabitedTime", 0); //TODO
|
$nbt->InhabitedTime = new LongTag("InhabitedTime", 0); //TODO
|
||||||
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated());
|
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated() ? 1 : 0);
|
||||||
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated());
|
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated() ? 1 : 0);
|
||||||
|
|
||||||
$nbt->Sections = new ListTag("Sections", []);
|
$nbt->Sections = new ListTag("Sections", []);
|
||||||
$nbt->Sections->setTagType(NBT::TAG_Compound);
|
$nbt->Sections->setTagType(NBT::TAG_Compound);
|
||||||
|
@ -58,8 +58,8 @@ class McRegion extends BaseLevelProvider{
|
|||||||
$nbt->zPos = new IntTag("zPos", $chunk->getZ());
|
$nbt->zPos = new IntTag("zPos", $chunk->getZ());
|
||||||
|
|
||||||
$nbt->LastUpdate = new LongTag("LastUpdate", 0); //TODO
|
$nbt->LastUpdate = new LongTag("LastUpdate", 0); //TODO
|
||||||
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated());
|
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated() ? 1 : 0);
|
||||||
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated());
|
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated() ? 1 : 0);
|
||||||
|
|
||||||
$ids = "";
|
$ids = "";
|
||||||
$data = "";
|
$data = "";
|
||||||
|
@ -49,8 +49,8 @@ class PMAnvil extends Anvil{
|
|||||||
$nbt->V = new ByteTag("V", 1);
|
$nbt->V = new ByteTag("V", 1);
|
||||||
$nbt->LastUpdate = new LongTag("LastUpdate", 0); //TODO
|
$nbt->LastUpdate = new LongTag("LastUpdate", 0); //TODO
|
||||||
$nbt->InhabitedTime = new LongTag("InhabitedTime", 0); //TODO
|
$nbt->InhabitedTime = new LongTag("InhabitedTime", 0); //TODO
|
||||||
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated());
|
$nbt->TerrainPopulated = new ByteTag("TerrainPopulated", $chunk->isPopulated() ? 1 : 0);
|
||||||
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated());
|
$nbt->LightPopulated = new ByteTag("LightPopulated", $chunk->isLightPopulated() ? 1 : 0);
|
||||||
|
|
||||||
$nbt->Sections = new ListTag("Sections", []);
|
$nbt->Sections = new ListTag("Sections", []);
|
||||||
$nbt->Sections->setTagType(NBT::TAG_Compound);
|
$nbt->Sections->setTagType(NBT::TAG_Compound);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user