mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Fixes vending machine assembly runtime
Vending machines would attempt to build_inventory using what appears to have been an old, multi-call method, including a named argument that no longer exists and would runtime.
This commit is contained in:
@@ -168,9 +168,7 @@
|
||||
|
||||
/obj/machinery/vending/RefreshParts() //Better would be to make constructable child
|
||||
if(component_parts)
|
||||
build_inventory(products, start_empty = 1)
|
||||
build_inventory(contraband, 1, 1)
|
||||
build_inventory(premium, 0, 1, 1)
|
||||
build_inventory()
|
||||
for(var/obj/item/weapon/vending_refill/VR in component_parts)
|
||||
refill_inventory(VR, product_records)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user