mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Use NBT Compounds instead of a NBT codec in PMF level data
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user