Fixes autolathe thing.

This commit is contained in:
Heroman
2022-12-14 18:24:16 +10:00
parent 76e61ad542
commit 60c566f2a9
+6 -1
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