mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-16 05:02:18 +00:00
Convert /material to it's correct absolute path /datum/material (#7637)
This commit is contained in:
@@ -103,7 +103,7 @@ SUBSYSTEM_DEF(supply)
|
||||
// Sell phoron and platinum
|
||||
if(istype(A, /obj/item/stack))
|
||||
var/obj/item/stack/P = A
|
||||
var/material/mat = P.get_material()
|
||||
var/datum/material/mat = P.get_material()
|
||||
if(mat?.supply_conversion_value)
|
||||
EC.contents[EC.contents.len]["value"] = P.get_amount() * mat.supply_conversion_value
|
||||
EC.contents[EC.contents.len]["quantity"] = P.get_amount()
|
||||
|
||||
Reference in New Issue
Block a user