Fix how we detect how injectable are enabled

This commit is contained in:
Sleepy Monax 2023-12-13 22:23:34 +01:00
parent 0bbced54c4
commit 0dac774fb8

View file

@ -595,7 +595,7 @@ class Registry(DataClassJsonMixin):
# Apply injects
for c in r.iter(Component):
if c.isEnabled(target)[0]:
if c.resolved[target.id].enabled:
for inject in c.injects:
victim = r.lookup(inject, Component, includeProvides=True)
if not victim: