mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-17 18:38:13 +00:00
TU19: merge Minecraft.World/Containers
keeping virtual destructors where possible
This commit is contained in:
@@ -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(); }
|
||||
Reference in New Issue
Block a user