Interaction Hotfix
Fixed exception when attempting to dock or enter wormhole
This commit is contained in:
parent
122e929214
commit
3f91b13d28
3 changed files with 12 additions and 6 deletions
|
|
@ -839,7 +839,7 @@ public class ActionGameManager : MonoBehaviour
|
|||
{
|
||||
foreach (var entity in Zone.Entities.ToArray())
|
||||
{
|
||||
if (lengthsq(entity.Position.xz - CurrentEntity.Position.xz) <
|
||||
if (entity != CurrentEntity && lengthsq(entity.Position.xz - CurrentEntity.Position.xz) <
|
||||
Settings.GameplaySettings.DockingDistance * Settings.GameplaySettings.DockingDistance)
|
||||
{
|
||||
var bay = entity.TryDock(ship);
|
||||
|
|
|
|||
Loading…
Reference in a new issue