mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
[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:
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
|
||||
|
||||
Reference in New Issue
Block a user