Merge pull request #13956 from Kyep/simplemob_beaker_feeding

Fixes runtimes caused by trying to force feed non-carbon mobs with beakers
This commit is contained in:
AffectedArc07
2020-08-07 10:45:30 +01:00
committed by GitHub
@@ -47,6 +47,9 @@
reagents.reaction(M, REAGENT_TOUCH)
reagents.clear_reagents()
else
if(!iscarbon(M)) // Non-carbons can't process reagents
to_chat(user, "<span class='warning'>You cannot find a way to feed [M].</span>")
return
if(M != user)
M.visible_message("<span class='danger'>[user] attempts to feed something to [M].</span>", \
"<span class='userdanger'>[user] attempts to feed something to you.</span>")