Skip to content

Commit 6f63c3e

Browse files
VALERA771louis1706
andauthored
fix: Hurting event NRE fix (#443)
fix: one day i'll kill person who made this Co-authored-by: Yamato <66829532+louis1706@users.noreply.github.com>
1 parent 35ee723 commit 6f63c3e

File tree

1 file changed

+1
-0
lines changed
  • EXILED/Exiled.Events/Patches/Events/Player

1 file changed

+1
-0
lines changed

EXILED/Exiled.Events/Patches/Events/Player/Hurting.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
4949
// this._hub
5050
new CodeInstruction(OpCodes.Ldarg_0).MoveLabelsFrom(newInstructions[index]),
5151
new(OpCodes.Ldfld, Field(typeof(PlayerStats), nameof(PlayerStats._hub))),
52+
new(OpCodes.Call, Method(typeof(Player), nameof(Player.Get), new[] { typeof(ReferenceHub) })),
5253

5354
// handler
5455
new(OpCodes.Ldarg_1),

0 commit comments

Comments
 (0)