Skip to content

Commit

Permalink
Fix wrong attribute and AppliesTo
Browse files Browse the repository at this point in the history
  • Loading branch information
Banane9 committed Aug 22, 2024
1 parent b051804 commit 1596147
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal sealed class DataFeedInjectorMonkey<TDataFeed> : ResoniteAsyncEventHand
/// <inheritdoc/>
public override int Priority => HarmonyLib.Priority.Normal;

protected override bool AppliesTo(FallbackLocaleGenerationEvent eventData) => !Failed && Enabled;
protected override bool AppliesTo(FallbackLocaleGenerationEvent eventData) => true;

protected override IEnumerable<IFeaturePatch> GetFeaturePatches() => [];

Expand All @@ -53,7 +53,7 @@ protected override bool OnEngineReady()
return base.OnEngineReady();
}

[HarmonyPrefix]
[HarmonyPostfix]
private static IAsyncEnumerable<DataFeedItem> EnumeratePostfix(IAsyncEnumerable<DataFeedItem> __result, TDataFeed __instance, IReadOnlyList<string> path, IReadOnlyList<string> groupKeys, string searchPhrase, object viewData)
{
var eventData = new EnumerateDataFeedEvent<TDataFeed>(__instance, __result, path, groupKeys, searchPhrase, viewData);
Expand Down

0 comments on commit 1596147

Please sign in to comment.