This commit is contained in:
parent
49cc73f571
commit
c63a5f13fa
1 changed files with 3 additions and 10 deletions
|
|
@ -108,21 +108,14 @@ namespace Server.Items
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
int maxWeight;
|
if ( Parent is Container && ((Container)Parent).MaxWeight == 0 )
|
||||||
|
|
||||||
if ( Parent is Container )
|
|
||||||
{
|
{
|
||||||
maxWeight = ((Container)Parent).MaxWeight;
|
return 0;
|
||||||
|
|
||||||
if ( maxWeight > 0 )
|
|
||||||
maxWeight = Math.Max( maxWeight, DefaultMaxWeight );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
maxWeight = DefaultMaxWeight;
|
return DefaultMaxWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
return maxWeight;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue