refactor(Minecraft.World): Implement LCEMP changes.
This commit is contained in:
@@ -476,29 +476,28 @@ LevelChunk *OldChunkStorage::load(Level *level, DataInputStream *dis)
|
||||
|
||||
CompoundTag *tag = NbtIo::read(dis);
|
||||
|
||||
loadEntities(levelChunk, level, tag);
|
||||
|
||||
if (tag->contains(L"TileTicks"))
|
||||
{
|
||||
PIXBeginNamedEvent(0,"Loading TileTicks");
|
||||
ListTag<CompoundTag> *tileTicks = (ListTag<CompoundTag> *) tag->getList(L"TileTicks");
|
||||
|
||||
if (tileTicks != NULL)
|
||||
{
|
||||
for (int i = 0; i < tileTicks->size(); i++)
|
||||
{
|
||||
CompoundTag *teTag = tileTicks->get(i);
|
||||
|
||||
level->forceAddTileTick(teTag->getInt(L"x"), teTag->getInt(L"y"), teTag->getInt(L"z"), teTag->getInt(L"i"), teTag->getInt(L"t"), teTag->getInt(L"p"));
|
||||
}
|
||||
}
|
||||
PIXEndNamedEvent();
|
||||
}
|
||||
|
||||
delete tag;
|
||||
|
||||
PIXEndNamedEvent();
|
||||
|
||||
if (tag != NULL)
|
||||
{
|
||||
loadEntities(levelChunk, level, tag);
|
||||
|
||||
if (tag->contains(L"TileTicks"))
|
||||
{
|
||||
ListTag<CompoundTag> *tileTicks = (ListTag<CompoundTag> *) tag->getList(L"TileTicks");
|
||||
|
||||
if (tileTicks != NULL)
|
||||
{
|
||||
for (int i = 0; i < tileTicks->size(); i++)
|
||||
{
|
||||
CompoundTag *teTag = tileTicks->get(i);
|
||||
|
||||
level->forceAddTileTick(teTag->getInt(L"x"), teTag->getInt(L"y"), teTag->getInt(L"z"), teTag->getInt(L"i"), teTag->getInt(L"t"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
delete tag;
|
||||
}
|
||||
|
||||
return levelChunk;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user