mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 09:31:30 +00:00
Merge pull request #8343 from Verkister/patch-79
Fixes runtime with ducks and turrets
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user