Skip to content

Commit

Permalink
Update code/modules/clothing/glasses/glasses.dm
Browse files Browse the repository at this point in the history
Co-authored-by: Drathek <[email protected]>
  • Loading branch information
Staykeu and Drulikar committed Jan 2, 2024
1 parent 488ce10 commit 7c3dd3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/clothing/glasses/glasses.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@
var/obj/item/clothing/glasses/offhand = user.get_inactive_hand()
if(istype(offhand) && !offhand.prescription)
if(tgui_alert(user, "Do you wish to take out the prescription lenses and put them in [offhand]?", "Insert Prescription Lenses", list("Yes", "No")) == "Yes")
if(QDELETED(src) || offhand != user.get_inactive_hand())
return FALSE
if(QDELETED(src) || offhand != user.get_inactive_hand())
return FALSE
offhand.prescription = TRUE
Expand Down

0 comments on commit 7c3dd3f

Please sign in to comment.