From de67be73af490fe9736bcb19a93f43b0ebe84341 Mon Sep 17 00:00:00 2001 From: KorPhaeron Date: Sun, 25 Oct 2015 17:51:38 -0500 Subject: [PATCH] Turf check --- code/modules/recycling/disposal-unit.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/recycling/disposal-unit.dm b/code/modules/recycling/disposal-unit.dm index 5b062e860ff..7294dbcb178 100644 --- a/code/modules/recycling/disposal-unit.dm +++ b/code/modules/recycling/disposal-unit.dm @@ -106,6 +106,8 @@ /obj/machinery/disposal/proc/stuff_mob_in(mob/living/target, mob/living/user) if(!iscarbon(user) && !user.ventcrawler) //only carbon and ventcrawlers can climb into disposal by themselves. return + if(!istype(user.loc, /turf/)) //No magically doing it from inside closets + return if(target.buckled || target.buckled_mob) return if(target.mob_size > MOB_SIZE_HUMAN)