fix: Fixes LOS house bug with large items in a container (#1332)
This commit is contained in:
parent
2db7513059
commit
9bb0dbf1ac
1 changed files with 9 additions and 2 deletions
|
|
@ -1057,8 +1057,15 @@ public sealed class Map : IComparable<Map>, ISpanFormattable, ISpanParsable<Map>
|
|||
}
|
||||
else if (o is Item item)
|
||||
{
|
||||
p = item.GetWorldLocation();
|
||||
p.Z += item.ItemData.Height / 2 + 1;
|
||||
if (item.RootParent != null)
|
||||
{
|
||||
p = GetPoint(item.RootParent, eye);
|
||||
}
|
||||
else
|
||||
{
|
||||
p = item.GetWorldLocation();
|
||||
p.Z += item.ItemData.Height / 2 + 1;
|
||||
}
|
||||
}
|
||||
else if (o is Point3D point3D)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue