Tiny pulling fixes (#5478)
This commit is contained in:
@@ -71,7 +71,7 @@ namespace Content.Shared.Pulling
|
|||||||
|
|
||||||
public void ForceRelationship(SharedPullerComponent? puller, SharedPullableComponent? pullable)
|
public void ForceRelationship(SharedPullerComponent? puller, SharedPullableComponent? pullable)
|
||||||
{
|
{
|
||||||
if ((puller != null) && (puller.Pulling == pullable))
|
if (pullable != null && puller != null && (puller.Pulling == pullable.Owner))
|
||||||
{
|
{
|
||||||
// Already done
|
// Already done
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ namespace Content.Shared.Pulling
|
|||||||
// The main "start pulling" function.
|
// The main "start pulling" function.
|
||||||
public bool TryStartPull(SharedPullerComponent puller, SharedPullableComponent pullable)
|
public bool TryStartPull(SharedPullerComponent puller, SharedPullableComponent pullable)
|
||||||
{
|
{
|
||||||
if (puller.Pulling == pullable)
|
if (puller.Pulling == pullable.Owner)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Pulling a new object : Perform sanity checks.
|
// Pulling a new object : Perform sanity checks.
|
||||||
|
|||||||
Reference in New Issue
Block a user