From 1407b75b0e186130aeed6cbd5ad8287c3a7f8863 Mon Sep 17 00:00:00 2001 From: Yamato <66829532+louis1706@users.noreply.github.com> Date: Tue, 24 Oct 2023 02:20:01 +0200 Subject: [PATCH] Fix IL ERROR (#2166) * Fix ILError * Fix Skill Issue from someone else - /* */ will need to be removed when the other method will be deleted --- Exiled.API/Features/Toys/Primitive.cs | 4 ++-- Exiled.Events/Patches/Events/Player/Kicking.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Exiled.API/Features/Toys/Primitive.cs b/Exiled.API/Features/Toys/Primitive.cs index be024200d3..b27db955da 100644 --- a/Exiled.API/Features/Toys/Primitive.cs +++ b/Exiled.API/Features/Toys/Primitive.cs @@ -107,7 +107,7 @@ public static Primitive Create(PrimitiveType primitiveType = PrimitiveType.Spher /// Whether or not the should be initially spawned. /// The color of the . /// The new . - public static Primitive Create(Vector3? position = null, Vector3? rotation = null, Vector3? scale = null, bool spawn = true, Color? color = null) + public static Primitive Create(Vector3? position /*= null*/, Vector3? rotation /*= null*/, Vector3? scale /*= null*/, bool spawn /*= true*/, Color? color /*= null*/) { Primitive primitive = new(Object.Instantiate(ToysHelper.PrimitiveBaseObject)); @@ -134,7 +134,7 @@ public static Primitive Create(Vector3? position = null, Vector3? rotation = nul /// Whether or not the should be initially spawned. /// The color of the . /// The new . - public static Primitive Create(PrimitiveType primitiveType = PrimitiveType.Sphere, Vector3? position = null, Vector3? rotation = null, Vector3? scale = null, bool spawn = true, Color? color = null) + public static Primitive Create(PrimitiveType primitiveType /*= PrimitiveType.Sphere*/, Vector3? position /*= null*/, Vector3? rotation /*= null*/, Vector3? scale /*= null*/, bool spawn /*= true*/, Color? color /*= null*/) { Primitive primitive = new(Object.Instantiate(ToysHelper.PrimitiveBaseObject)); diff --git a/Exiled.Events/Patches/Events/Player/Kicking.cs b/Exiled.Events/Patches/Events/Player/Kicking.cs index 95d1723150..070314e0ad 100644 --- a/Exiled.Events/Patches/Events/Player/Kicking.cs +++ b/Exiled.Events/Patches/Events/Player/Kicking.cs @@ -47,7 +47,7 @@ private static IEnumerable Transpiler(IEnumerable x.opcode == OpCodes.Ldstr).operand), @@ -71,7 +71,7 @@ private static IEnumerable Transpiler(IEnumerable