[MIRROR] Fix edible component overriding grind_results (#788)

* Fix edible component overriding grind_results (#53650)

Anything with both grind_results and /datum/component/edible currently does not give its grind_results when grinding it because the edible component is overriding it. This fixes that, I only found livers but there may be other items which are affected.

* Fix edible component overriding grind_results

Co-authored-by: msgerbs <msgerbs@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-09-13 13:18:41 +02:00
committed by GitHub
co-authored by msgerbs
parent abb6ef9d49
commit 14d7b89b5f
+2 -1
View File
@@ -71,7 +71,8 @@ Behavior that's still missing from this component that original food items had t
RegisterSignal(parent, COMSIG_ITEM_MICROWAVE_ACT, .proc/OnMicrowaved)
var/obj/item/item = parent
item.grind_results = list() //Cursed but this is how snacks did it, grinding needs a refactor in the future.
if (!item.grind_results)
item.grind_results = list() //If this doesn't already exist, add it as an empty list. This is needed for the grinder to accept it.
else if(isturf(parent))
RegisterSignal(parent, COMSIG_ATOM_ATTACK_HAND, .proc/TryToEatTurf)