Fixes autolathe and smartfridge issues

This commit is contained in:
Heroman
2022-12-28 17:43:04 +10:00
parent e5ee1d2801
commit 547382e647
12 changed files with 28 additions and 37 deletions
+1 -6
View File
@@ -140,12 +140,7 @@
return
// Cache this since S may go away after use()
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
var/list/sheet_matter = S.matter
// Calculate total amount of material for one sheet
var/matter_per_sheet = 0