Skip to content

Commit

Permalink
Fix attach bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TBartl committed Oct 1, 2018
1 parent 37a0e87 commit 58d1779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SS5R-Source/Assets/Objects/Attach/AttachPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class AttachPoint : Interactable {
Attacher attached;

public override bool GetInteractable(Interactor interactor) {
return base.GetInteractable(interactor) && attached == null && interactor.name.Split(' ')[0] == targetPrefab.name;
return base.GetInteractable(interactor) && attached == null && interactor.name.Split('(')[0] == targetPrefab.name;
}

public override void InteractWith(Interactor interactor) {
Expand Down

0 comments on commit 58d1779

Please sign in to comment.