Unstable v0.10.6.0 (October 13th 2020)
This commit is contained in:
@@ -733,9 +733,10 @@ namespace Barotrauma
|
||||
}
|
||||
else
|
||||
{
|
||||
if (targets.FirstOrDefault(t => t is MapEntity) is MapEntity targetEntity && !targetEntity.Removed)
|
||||
var targetLimb = targets.FirstOrDefault(t => t is Limb) as Limb;
|
||||
if (targetLimb != null && !targetLimb.Removed)
|
||||
{
|
||||
position = targetEntity.WorldPosition;
|
||||
position = targetLimb.WorldPosition;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user