Fixes parent references. (#15)
This commit is contained in:
parent
01d0fb75b8
commit
90ffe0ea3c
20 changed files with 55 additions and 93 deletions
|
|
@ -53,7 +53,7 @@ namespace Server.Items
|
|||
}
|
||||
else if (targeted is Item item)
|
||||
{
|
||||
object root = item.RootParent;
|
||||
IEntity root = item.RootParent;
|
||||
|
||||
if (root != null && root != from || item.Parent == from)
|
||||
{
|
||||
|
|
@ -61,10 +61,7 @@ namespace Server.Items
|
|||
}
|
||||
else if (item.Movable)
|
||||
{
|
||||
if (item.Amount > 1)
|
||||
message = "You place one item on the scale. ";
|
||||
else
|
||||
message = "You place that item on the scale. ";
|
||||
message = item.Amount > 1 ? "You place one item on the scale. " : "You place that item on the scale. ";
|
||||
|
||||
double weight = item.Weight;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue