From dc8cc2ab9fa275a9ab7d7d578e30bb22cda4faa1 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 27 Feb 2014 15:17:45 +0100 Subject: [PATCH] fixed empty world generation --- src/pmf/PMFLevel.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pmf/PMFLevel.php b/src/pmf/PMFLevel.php index fb3f792f6..ac83f1d5a 100644 --- a/src/pmf/PMFLevel.php +++ b/src/pmf/PMFLevel.php @@ -371,9 +371,17 @@ class PMFLevel extends PMF{ 6 => 8192, 7 => 8192, ); + $nbt = new NBT(NBT::BIG_ENDIAN); + $nbt->setData(new NBTTag_Compound("", array( + "Entities" => new NBTTag_List("Entities", array()), + "TileEntities" => new NBTTag_List("TileEntities", array()) + ))); + $nbt->Entities->setTagType(NBTTag::TAG_Compound); + $nbt->TileEntities->setTagType(NBTTag::TAG_Compound); $this->chunkInfo[$index] = array( 0 => 0, 1 => 0, + 2 => $nbt, ); } }