mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 10:03:50 +01:00
Fix stacks dupe and ore duping with BS crystals (#23948)
This commit is contained in:
@@ -396,7 +396,11 @@
|
||||
var/datum/component/material_container/materials = GetComponent(/datum/component/material_container)
|
||||
var/amount_compatible = materials.get_item_material_amount(O)
|
||||
if(amount_compatible)
|
||||
materials.insert_item(O, sheet_per_ore)
|
||||
// Prevents duping
|
||||
if(O.refined_type)
|
||||
materials.insert_item(O, sheet_per_ore)
|
||||
else
|
||||
materials.insert_item(O, 1)
|
||||
// Delete the stack
|
||||
ore_buffer -= O
|
||||
qdel(O)
|
||||
|
||||
Reference in New Issue
Block a user