mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
crafting ui now resets after a crafting
This commit is contained in:
@@ -177,8 +177,10 @@ class UICrafting(val full: UIInventoryFull) : UICanvas(), HasInventory {
|
|||||||
player.remove(itm, qty * mult)
|
player.remove(itm, qty * mult)
|
||||||
}
|
}
|
||||||
player.add(recipe.product, recipe.moq * mult)
|
player.add(recipe.product, recipe.moq * mult)
|
||||||
|
|
||||||
|
// reset selection status after a crafting to hide the possible artefact where no-longer-craftable items are still displayed due to ingredient depletion
|
||||||
|
resetUI()
|
||||||
itemListPlayer.rebuild(catAll)
|
itemListPlayer.rebuild(catAll)
|
||||||
itemListIngredients.rebuild(catAll)
|
|
||||||
itemListCraftable.rebuild(catAll)
|
itemListCraftable.rebuild(catAll)
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user