[MIRROR] Visually update containers when crafting [MDB IGNORE] (#17524)

* Visually update containers when crafting (#71135)

## About The Pull Request

Makes reagent containers update their appearance when crafting.
Fixes #69935, minor but annoying bug, especially when you are playing as
chef.

## Changelog
🆑
fix: Containers visually update after crafting.
/🆑

Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>

* Visually update containers when crafting

Co-authored-by: antropod <antropod@gmail.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-11-17 16:53:03 -05:00
committed by GitHub
co-authored by Mothblocks antropod
parent d08d158091
commit 39b285a0ee
@@ -279,6 +279,7 @@
RG.volume -= amt
data = RG.data
RC.reagents.conditional_update(RC)
RC.update_appearance(UPDATE_ICON)
RG = locate(RG.type) in Deletion
RG.volume = amt
RG.data += data
@@ -288,6 +289,7 @@
amt -= RG.volume
RC.reagents.reagent_list -= RG
RC.reagents.conditional_update(RC)
RC.update_appearance(UPDATE_ICON)
RGNT = locate(RG.type) in Deletion
RGNT.volume += RG.volume
RGNT.data += RG.data