feat: Replaces params array with params ReadOnlySpan (#2125)
This commit is contained in:
parent
90059c5e74
commit
279b10dd0f
15 changed files with 36 additions and 35 deletions
|
|
@ -6,7 +6,7 @@ namespace Server.Items;
|
|||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class FlippableAddonAttribute : Attribute
|
||||
{
|
||||
private static readonly string m_MethodName = "Flip";
|
||||
private const string MethodName = "Flip";
|
||||
|
||||
private static readonly Type[] m_Params =
|
||||
{
|
||||
|
|
@ -26,7 +26,7 @@ public class FlippableAddonAttribute : Attribute
|
|||
|
||||
try
|
||||
{
|
||||
var flipMethod = addon.GetType().GetMethod(m_MethodName, m_Params);
|
||||
var flipMethod = addon.GetType().GetMethod(MethodName, m_Params);
|
||||
|
||||
if (flipMethod == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue