mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Fixed materials after last merge (#51288)
This commit is contained in:
@@ -116,7 +116,7 @@
|
||||
user.put_in_active_hand(I)
|
||||
|
||||
/// Proc specifically for inserting items, returns the amount of materials entered.
|
||||
/datum/component/material_container/proc/insert_item(obj/item/I, var/multiplier = 1, amt)
|
||||
/datum/component/material_container/proc/insert_item(obj/item/I, amt=1, multiplier = 1)
|
||||
if(!I)
|
||||
return FALSE
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
var/material_amount = materials.get_item_material_amount(I)
|
||||
if(!material_amount)
|
||||
return
|
||||
materials.insert_item(I, multiplier = (amount_produced / 100))
|
||||
materials.insert_item(I, material_amount, multiplier = (amount_produced / 100))
|
||||
materials.retrieve_all()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user