Fixes brace style (#248)

This commit is contained in:
Kamron Batman 2020-09-13 21:49:46 -07:00 • committed by GitHub
parent a236617ad9
commit 8149620b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1503 changed files with 28575 additions and 1717 deletions

View file

@ -36,10 +36,14 @@ namespace Server.Gumps
try
{
if (m_Type == typeof(Type))
{
targeted = targeted.GetType();
}
else if ((m_Type == typeof(BaseAddon) || m_Type.IsAssignableFrom(typeof(BaseAddon))) &&
targeted is AddonComponent addonComponent)
{
targeted = addonComponent.Addon;
}
if (m_Type.IsInstanceOfType(targeted))
{
@ -61,9 +65,13 @@ namespace Server.Gumps
protected override void OnTargetFinish(Mobile from)
{
if (m_Type == typeof(Type))
from.SendGump(new PropertiesGump(m_Mobile, m_Object, m_Stack, m_List, m_Page));
{
@from.SendGump(new PropertiesGump(m_Mobile, m_Object, m_Stack, m_List, m_Page));
}
else
from.SendGump(new SetObjectGump(m_Property, m_Mobile, m_Object, m_Stack, m_Type, m_Page, m_List));
{
@from.SendGump(new SetObjectGump(m_Property, m_Mobile, m_Object, m_Stack, m_Type, m_Page, m_List));
}
}
}
}