TU19: merge Minecraft.World/Containers

keeping virtual destructors where possible
This commit is contained in:
Tropical
2026-03-21 15:18:52 -05:00
parent db0a6b2e6a
commit f25cd66f4d
56 changed files with 1412 additions and 373 deletions

View File

@@ -125,10 +125,11 @@ MerchantRecipeList* MerchantRecipeList::createFromStream(
}
void MerchantRecipeList::load(CompoundTag* tag) {
ListTag<Tag>* list = tag->getList(L"Recipes");
ListTag<CompoundTag>* list =
(ListTag<CompoundTag>*)tag->getList(L"Recipes");
for (int i = 0; i < list->size(); i++) {
CompoundTag* recipeTag = (CompoundTag*)list->get(i);
CompoundTag* recipeTag = list->get(i);
m_recipes.push_back(new MerchantRecipe(recipeTag));
}
}
@@ -169,4 +170,4 @@ std::vector<MerchantRecipe*>::iterator MerchantRecipeList::erase(
size_t MerchantRecipeList::size() { return m_recipes.size(); }
bool MerchantRecipeList::empty() { return m_recipes.empty(); }
bool MerchantRecipeList::empty() { return m_recipes.empty(); }