From 6e79637004bf7da676f7e6be902cc7e21ec04cce Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 27 Oct 2020 10:09:37 +0100 Subject: [PATCH] [MIRROR] Holodeck bedsheets no longer drop cloth when cut (#1492) * Holodeck bedsheets no longer drop cloth when cut (#54548) they now check if they have HOLOFLAG_1 and if they do they dont drop cloth * Holodeck bedsheets no longer drop cloth when cut Co-authored-by: Kylerace --- code/game/objects/structures/bedsheet_bin.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/game/objects/structures/bedsheet_bin.dm b/code/game/objects/structures/bedsheet_bin.dm index 04fa215aef6..5780b728f5d 100644 --- a/code/game/objects/structures/bedsheet_bin.dm +++ b/code/game/objects/structures/bedsheet_bin.dm @@ -46,9 +46,10 @@ LINEN BINS /obj/item/bedsheet/attackby(obj/item/I, mob/user, params) if(I.tool_behaviour == TOOL_WIRECUTTER || I.get_sharpness()) - var/obj/item/stack/sheet/cloth/C = new (get_turf(src), 3) - transfer_fingerprints_to(C) - C.add_fingerprint(user) + if (!(flags_1 & HOLOGRAM_1)) + var/obj/item/stack/sheet/cloth/shreds = new (get_turf(src), 3) + transfer_fingerprints_to(shreds) + shreds.add_fingerprint(user) qdel(src) to_chat(user, "You tear [src] up.") else