Merge pull request #15949 from SandPoot/fix-solar-runtimes

Turns out the glass type giving you better stats didn't work
This commit is contained in:
silicons
2023-01-29 13:46:21 -08:00
committed by GitHub
+3 -2
View File
@@ -242,8 +242,9 @@
to_chat(user, "<span class='warning'>You need to secure the assembly before you can add glass.</span>")
return
var/obj/item/stack/sheet/S = W
if(S.use(2))
glass_type = W.type
S = S.split_stack(amount=2)
if(S)
glass_type = S
playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
user.visible_message("<span class='notice'>[user] places the glass on the solar assembly.</span>", "<span class='notice'>You place the glass on the solar assembly.</span>")
if(tracker)