Poly can no longer grab inside disposals. (#16068)

* Poly can no longer grab inside disposals.

* Update code/modules/mob/living/simple_animal/parrot.dm

Spacing from SabreML

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>
This commit is contained in:
Dragonkiller93
2021-06-06 04:45:49 -07:00
committed by GitHub
parent 9d10cf4260
commit 6191c84860
@@ -562,7 +562,9 @@
if(held_item)
to_chat(src, "<span class='warning'>You are already holding [held_item]</span>")
return 1
if(istype(loc, /obj/machinery/disposal) || istype(loc, /obj/structure/disposalholder))
to_chat(src, "<span class='warning'>You are inside a disposal chute!</span>")
return 1
for(var/obj/item/I in view(1, src))
//Make sure we're not already holding it and it's small enough
if(I.loc != src && I.w_class <= WEIGHT_CLASS_SMALL)