mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-22 10:44:49 +00:00
TU24
This commit is contained in:
@@ -24,18 +24,15 @@ void StructureFeatureSavedData::save(CompoundTag *tag)
|
||||
tag->put(TAG_FEATURES, pieceTags->copy() );
|
||||
}
|
||||
|
||||
void StructureFeatureSavedData::putFeatureTag(byteArray data, int chunkX, int chunkZ)
|
||||
CompoundTag *StructureFeatureSavedData::getFeatureTag(int chunkX, int chunkZ)
|
||||
{
|
||||
wstring name = createFeatureTagId(chunkX, chunkZ);
|
||||
return pieceTags->getCompound(createFeatureTagId(chunkX, chunkZ));
|
||||
}
|
||||
|
||||
if (pieceTags->contains(name))
|
||||
{
|
||||
delete pieceTags->getCompound(name);
|
||||
pieceTags->remove(name);
|
||||
}
|
||||
|
||||
CompoundTag* tag = new CompoundTag(name);
|
||||
tag->putByteArray(L"data", data);
|
||||
void StructureFeatureSavedData::putFeatureTag(CompoundTag *tag, int chunkX, int chunkZ)
|
||||
{
|
||||
wstring name = createFeatureTagId(chunkX, chunkZ);
|
||||
tag->setName(name);
|
||||
pieceTags->put(name, tag);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user