From 9edcd1b35363277581c427161ab1d7a9404f7655 Mon Sep 17 00:00:00 2001 From: SandPoot Date: Mon, 23 Jan 2023 16:56:37 -0300 Subject: [PATCH] fix it --- code/modules/power/solar.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm index 27fb30a459..67ab3817ae 100644 --- a/code/modules/power/solar.dm +++ b/code/modules/power/solar.dm @@ -242,8 +242,9 @@ to_chat(user, "You need to secure the assembly before you can add glass.") 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("[user] places the glass on the solar assembly.", "You place the glass on the solar assembly.") if(tracker)