Skip to content

Commit 8df2572

Browse files
committed
TODO: Fix THE CRASH ISSUE
1 parent 841a5ce commit 8df2572

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
117117
offset = 3;
118118
index = newInstructions.FindLastIndex(
119119
instruction => instruction.Calls(Method(typeof(NetworkUtils), nameof(NetworkUtils.SendToAuthenticated)))) + offset;
120-
120+
/* // TODO: FIX THE CRASH ISSUE
121121
newInstructions.InsertRange(
122122
index,
123123
new[]
@@ -135,7 +135,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
135135
136136
// Handlers.Player.OnCancellingItemUse(ev)
137137
new(OpCodes.Call, Method(typeof(Handlers.Player), nameof(Handlers.Player.OnCancelledItemUse))),
138-
});
138+
});*/
139139

140140
newInstructions[newInstructions.Count - 1].WithLabels(returnLabel);
141141

0 commit comments

Comments
 (0)