mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user