(fc5e081d3) Fixed: Hull names not saving properly in submarineditor
This commit is contained in:
+2
-1
@@ -91,7 +91,8 @@ namespace Barotrauma
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!character.CanInteractWith(container.Item, out _, checkLinked: false))
|
||||
if (container.Item.CurrentHull != character.CurrentHull ||
|
||||
(Vector2.DistanceSquared(character.Position, container.Item.Position) > Math.Pow(container.Item.InteractDistance, 2) && !container.Item.IsInsideTrigger(character.WorldPosition)))
|
||||
{
|
||||
TryAddSubObjective(ref goToObjective, () => new AIObjectiveGoTo(container.Item, character, objectiveManager));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user