Fixes cleaning items in your hands (#31996)

This commit is contained in:
Jordan Brown
2017-10-23 01:10:42 -04:00
committed by ShizCalev
parent 82b893953b
commit 94a5c1cf3b
+1 -1
View File
@@ -58,7 +58,7 @@
return
//I couldn't feasibly fix the overlay bugs caused by cleaning items we are wearing.
//So this is a workaround. This also makes more sense from an IC standpoint. ~Carn
if(user.client && (target in user.client.screen))
if(user.client && ((target in user.client.screen) && !user.is_holding(target)))
to_chat(user, "<span class='warning'>You need to take that [target.name] off before cleaning it!</span>")
else if(istype(target, /obj/effect/decal/cleanable))
user.visible_message("[user] begins to scrub \the [target.name] out with [src].", "<span class='warning'>You begin to scrub \the [target.name] out with [src]...</span>")