fix(17003): can't dispose abstract items

Abstract items (such as slapper) should't be allow to be disposed away.
This commit is contained in:
Paulo Elienay
2021-10-28 12:47:40 -03:00
parent 2d3e44511e
commit 8b36807988
+1 -1
View File
@@ -95,7 +95,7 @@
// attack by item places it in to disposal
/obj/machinery/disposal/attackby(obj/item/I, mob/user, params)
if(stat & BROKEN || !I || !user)
if(stat & BROKEN || !I || !user || I.flags & ABSTRACT)
return
src.add_fingerprint(user)