fix: Fixes props gump for interfaces again (#2180)

This commit is contained in:
Kamron Batman 2025-05-09 15:44:32 -07:00 committed by GitHub
parent 05825a11e2
commit 18903ee17b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))