Use NBT Compounds instead of a NBT codec in PMF level data

This commit is contained in:
Shoghi Cervantes
2014-03-12 22:54:32 +01:00
parent 63542a2f13
commit 3c3b346fd3
2 changed files with 14 additions and 13 deletions

View File

@@ -554,11 +554,10 @@ class Level{
protected function doSaveRoundExtra(){
foreach($this->usedChunks as $index => $d){
LevelFormat::getXZ($index, $X, $Z);
$nbt = new NBT(NBT::BIG_ENDIAN);
$nbt->setData(new Compound("", array(
$nbt = new Compound("", array(
new Enum("Entities", array()),
new Enum("TileEntities", array()),
)));
));
$nbt->Entities->setTagType(NBT::TAG_Compound);
$nbt->TileEntities->setTagType(NBT::TAG_Compound);