fix: Fixes props gump read only (#581)
This commit is contained in:
parent
3a619e0103
commit
e545cdd81c
1 changed files with 3 additions and 3 deletions
|
|
@ -229,8 +229,8 @@ namespace Server.Gumps
|
|||
|
||||
var cpa = GetCPA(prop);
|
||||
|
||||
if ((!prop.GetType().IsValueType || prop.CanWrite) && cpa != null &&
|
||||
m_Mobile.AccessLevel >= cpa.WriteLevel && !cpa.ReadOnly)
|
||||
if (!prop.GetType().IsValueType && prop.CanWrite &&
|
||||
m_Mobile.AccessLevel >= cpa?.WriteLevel && !cpa.ReadOnly)
|
||||
{
|
||||
AddButton(x + SetOffsetX, y + SetOffsetY, SetButtonID1, SetButtonID2, i + 3);
|
||||
}
|
||||
|
|
@ -296,7 +296,7 @@ namespace Server.Gumps
|
|||
|
||||
var attr = GetCPA(prop);
|
||||
|
||||
if (prop.GetType().IsValueType && !prop.CanWrite || attr == null ||
|
||||
if (prop.GetType().IsValueType || !prop.CanWrite || attr == null ||
|
||||
from.AccessLevel < attr.WriteLevel || attr.ReadOnly)
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue