Skip to content

Commit

Permalink
Fix Event<IExiledEvent>.Dictionary (Exiled-Team#2448)
Browse files Browse the repository at this point in the history
* Event.List

* Revert "Event.List"

This reverts commit 11cb136.

* Finally i will make it like this
  • Loading branch information
louis1706 authored Apr 6, 2024
1 parent d8d5eb5 commit 1a61285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Exiled.Events/Features/Event{T}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace Exiled.Events.Features
/// <typeparam name="T">The specified <see cref="EventArgs"/> that the event will use.</typeparam>
public class Event<T> : IExiledEvent
{
private static readonly Dictionary<Type, Event<T>> TypeToEvent = new();
private static readonly Dictionary<Type, IExiledEvent> TypeToEvent = new();

private bool patched;

Expand All @@ -55,7 +55,7 @@ public Event()
/// <summary>
/// Gets a <see cref="IReadOnlyCollection{T}"/> of <see cref="Event{T}"/> which contains all the <see cref="Event{T}"/> instances.
/// </summary>
public static IReadOnlyDictionary<Type, Event<T>> Dictionary => TypeToEvent;
public static IReadOnlyDictionary<Type, IExiledEvent> Dictionary => TypeToEvent;

/// <summary>
/// Subscribes a target <see cref="CustomEventHandler{TEventArgs}"/> to the inner event and checks if patching is possible, if dynamic patching is enabled.
Expand Down

0 comments on commit 1a61285

Please sign in to comment.