Merge pull request #8343 from Verkister/patch-79

Fixes runtime with ducks and turrets
This commit is contained in:
Atermonera
2021-11-21 00:04:01 -08:00
committed by GitHub

View File

@@ -57,9 +57,10 @@
. = ..()
var/has_food = FALSE
for(var/obj/item/I in L.get_contents()) // Do they have food?
if(istype(I, /obj/item/weapon/reagent_containers/food))
has_food = TRUE
break
if(isliving(L))
for(var/obj/item/I in L.get_contents()) // Do they have food?
if(istype(I, /obj/item/weapon/reagent_containers/food))
has_food = TRUE
break
if(has_food) // Yes? Gimme the food.
return FALSE