From 39ca6a2d9dfed4310981940a1892ccc8002d9da0 Mon Sep 17 00:00:00 2001 From: H0lySquirr3l <34927367+H0lySquirr3l@users.noreply.github.com> Date: Mon, 22 Mar 2021 21:08:18 -0500 Subject: [PATCH] Update code/modules/vore/smoleworld/smoleworld_vr.dm Co-authored-by: Meghan-Rossi <56671765+Meghan-Rossi@users.noreply.github.com> --- code/modules/vore/smoleworld/smoleworld_vr.dm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/code/modules/vore/smoleworld/smoleworld_vr.dm b/code/modules/vore/smoleworld/smoleworld_vr.dm index 09ecbcece2..a4e4d43327 100644 --- a/code/modules/vore/smoleworld/smoleworld_vr.dm +++ b/code/modules/vore/smoleworld/smoleworld_vr.dm @@ -173,10 +173,9 @@ return to_chat(user, "[src] was dismantaled into bricks.") playsound(src, 'sound/items/smolesmallbuild.ogg', 50, 1, -1, volume_channel = VOLUME_CHANNEL_MASTER) - var/turf/simulated/floor/F = get_turf(src) - if(istype(F)) - new /obj/item/stack/material/smolebricks(F) - new /obj/item/stack/material/smolebricks(F) + if(!isnull(loc)) + new /obj/item/stack/material/smolebricks(loc) + new /obj/item/stack/material/smolebricks(loc) qdel(src) else if (usr.a_intent == I_HURT) @@ -404,4 +403,4 @@ starts_with = list(/obj/item/weapon/reagent_containers/food/snacks/snackplanet/phoron, /obj/item/weapon/reagent_containers/food/snacks/snackplanet/virgo3b,/obj/item/weapon/reagent_containers/food/snacks/snackplanet/moon, /obj/item/weapon/reagent_containers/food/snacks/snackplanet/virgoprime - ) \ No newline at end of file + )