Fix calling Hook.Call directly from Lua being broken

This commit is contained in:
Evil Factory
2026-04-04 22:52:27 -03:00
parent 5e003bcf11
commit 9b05c51ae5

View File

@@ -134,6 +134,7 @@ public partial class EventService : IEventService
return Call<object>(eventName, args);
}
[MoonSharpHidden] // Needs to be hidden so Lua doesn't accidentally use this instead of the above
public T Call<T>(string eventName, params object[] args)
{
Guard.IsNotNullOrWhiteSpace(eventName, nameof(eventName));