Merge branch 'master' into upstream-merge-14206

This commit is contained in:
Razgriz
2022-12-15 15:24:53 -07:00
committed by GitHub
8 changed files with 64 additions and 23 deletions

View File

@@ -140,7 +140,12 @@
return
// Cache this since S may go away after use()
var/list/sheet_matter = S.matter
var/list/sheet_matter
if(istype(S, /obj/item/stack/material))
var/obj/item/stack/material/MS = S
sheet_matter = list(MS.material.name = 2000)
else
sheet_matter = S.matter
// Calculate total amount of material for one sheet
var/matter_per_sheet = 0