Skip to content

Commit

Permalink
Do not create duplicate joints
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician committed Sep 17, 2024
1 parent fd1b913 commit 0776bff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Content.Shared/Floofstation/Leash/LeashSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ private void OnJointRemoved(Entity<LeashedComponent> ent, ref JointRemovedEvent
// If the entity still has a leashed comp, and is on the same map, and is within the max distance of the leash
// Then the leash was likely broken due to some weird unforeseen fucking robust toolbox magic. We can try to recreate it.
// This is hella unsafe to do. It will crash in debug builds under certain conditions. Luckily, release builds are safe.
RemoveLeash(ent!, (puller, leash), false);
DoLeash((ent.Comp.Anchor.Value, anchor), (puller, leash), ent);
}

Expand Down

0 comments on commit 0776bff

Please sign in to comment.