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:
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
|
||||
|
||||
Reference in New Issue
Block a user