Skip to content

Commit

Permalink
Fix item dropping when upgrading camera (ParadiseSS13#24214)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dzianishchyts authored Feb 19, 2024
1 parent 6811e20 commit 2efb234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/machinery/camera/camera.dm
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
var/msg2 = "<span class='notice'>The camera already has that upgrade!</span>"

if(istype(I, /obj/item/stack/sheet/mineral/plasma) && panel_open)
if(!user.drop_item())
if(!user.canUnEquip(I, FALSE))
to_chat(user, "<span class='warning'>[I] is stuck to your hand!</span>")
return
if(!isEmpProof())
Expand All @@ -137,7 +137,7 @@
else
to_chat(user, "[msg2]")
else if(istype(I, /obj/item/assembly/prox_sensor) && panel_open)
if(!user.drop_item())
if(!user.canUnEquip(I, FALSE))
to_chat(user, "<span class='warning'>[I] is stuck to your hand!</span>")
return
if(!isMotion())
Expand Down

0 comments on commit 2efb234

Please sign in to comment.