This commit is contained in:
MapleWheels
2026-02-11 15:19:40 -05:00
parent 471e256353
commit ad152ee747
2 changed files with 2 additions and 6 deletions

View File

@@ -30,9 +30,7 @@ namespace Barotrauma
// == startup
_servicesProvider = SetupServicesProvider();
_runStateMachine = SetupStateMachine();
_servicesProvider.GetService<HarmonyEventPatchesService>();
SubscribeToLuaCsEvents();
}

View File

@@ -62,9 +62,7 @@ internal class HarmonyEventPatchesService : IService
{
_eventService.PublishEvent<IEventEnabledPackageListChanged>(sub => sub.OnEnabledPackageListChanged(EnabledPackages.Core, EnabledPackages.Regular));
}
#if CLIENT
[HarmonyPatch(typeof(GameClient), "ReadDataMessage"), HarmonyPrefix]
public static void GameClient_ReadDataMessage_Pre(IReadMessage inc)
@@ -126,7 +124,7 @@ internal class HarmonyEventPatchesService : IService
public void Dispose()
{
Harmony.UnpatchSelf();
IsDisposed = true;
Harmony.UnpatchSelf();
}
}