Actually subscribe to IEventAssemblyUnloading

This commit is contained in:
Evil Factory
2026-03-22 17:24:02 -03:00
parent 44a9ce2417
commit e62450c763

View File

@@ -247,6 +247,8 @@ class LuaScriptManagementService : ILuaScriptManagementService, ILuaDataService,
private void RegisterLuaEvents()
{
_eventService.Subscribe<IEventAssemblyUnloading>(this);
_eventService.RegisterLuaEventAlias<IEventUpdate>("think", nameof(IEventUpdate.OnUpdate));
_eventService.RegisterLuaEventAlias<IEventKeyUpdate>("keyUpdate", nameof(IEventKeyUpdate.OnKeyUpdate));
_eventService.RegisterLuaEventAlias<IEventAfflictionUpdate>("afflictionUpdate", nameof(IEventAfflictionUpdate.OnAfflictionUpdate));