Fixes Bedbuckling to avoid Floor is Lava (#37752)

* Update floor_is_lava.dm

* Pulls the check out of the loop.
This commit is contained in:
Grandmother of 50
2018-05-12 18:43:35 -04:00
committed by letterjay
parent df19890da4
commit 023f93f734
@@ -25,8 +25,10 @@
/datum/weather/floor_is_lava/weather_act(mob/living/L)
if(issilicon(L))
return
if(istype(L.buckled, /obj/structure/bed))
return
for(var/obj/structure/O in L.loc)
if(O.density || (L in O.buckled_mobs && istype(O, /obj/structure/bed)))
if(O.density)
return
if(L.loc.density)
return