Fix impact audio for host

This commit is contained in:
Nick 2022-08-27 22:05:01 -04:00
parent d3dc4f4023
commit 232aec2a52

View File

@ -8,7 +8,8 @@ namespace QSB.Audio.Patches;
internal class PlayerImpactAudioPatches : QSBPatch
{
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
// Since we patch Start we do it when the mod starts, else it won't run
public override QSBPatchTypes Type => QSBPatchTypes.OnModStart;
[HarmonyPostfix]
[HarmonyPatch(typeof(PlayerImpactAudio), nameof(PlayerImpactAudio.Start))]