From 18903ee17b4a6c3651f12e4b1919b3c427492466 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Fri, 9 May 2025 15:44:32 -0700 Subject: [PATCH] fix: Fixes props gump for interfaces again (#2180) --- Projects/UOContent/Gumps/Props/PropsGump.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Projects/UOContent/Gumps/Props/PropsGump.cs b/Projects/UOContent/Gumps/Props/PropsGump.cs index 381f28176..8f7d31119 100644 --- a/Projects/UOContent/Gumps/Props/PropsGump.cs +++ b/Projects/UOContent/Gumps/Props/PropsGump.cs @@ -299,7 +299,8 @@ namespace Server.Gumps return; } - var type = prop.PropertyType; + var obj = prop.GetValue(m_Object, null); + var type = obj?.GetType() ?? prop.PropertyType; if (IsType(type, OfEntity)) { @@ -392,8 +393,6 @@ namespace Server.Gumps } else if (HasAttribute(type, OfPropertyObject, true)) { - var obj = prop.GetValue(m_Object, null); - from.SendGump( obj != null ? new PropertiesGump(from, obj, m_Stack, new StackEntry(m_Object, prop))