From 430ed57f6942f60aaf1313a6de9ccc1bef6fefcf Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 25 Jan 2022 17:48:03 +0100 Subject: [PATCH] [MIRROR] Vending Machine no gravity fix [MDB IGNORE] (#10982) * Vending Machine no gravity fix (#64379) Vending machines will no longer tilt onto people if there is currently no gravity experienced by it. * Vending Machine no gravity fix Co-authored-by: SMOSMOSMOSMOSMO <95004236+SmoSmoSmoSmok@users.noreply.github.com> --- code/modules/vending/_vending.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/vending/_vending.dm b/code/modules/vending/_vending.dm index 9becf90a5d8..b3125e4925d 100644 --- a/code/modules/vending/_vending.dm +++ b/code/modules/vending/_vending.dm @@ -532,7 +532,7 @@ GLOBAL_LIST_EMPTY(vending_products) ///Tilts ontop of the atom supplied, if crit is true some extra shit can happen. Returns TRUE if it dealt damage to something. /obj/machinery/vending/proc/tilt(atom/fatty, crit=FALSE) - if(QDELETED(src)) + if(QDELETED(src) || !has_gravity(src)) return visible_message(span_danger("[src] tips over!")) tilted = TRUE