fix: Fixes LOS house bug with large items in a container (#1332)

This commit is contained in:
Kamron Batman 2023-02-05 12:04:52 -08:00 committed by GitHub
parent 2db7513059
commit 9bb0dbf1ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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