Skip to content

Commit

Permalink
Merge pull request #103 from xiluisx/master
Browse files Browse the repository at this point in the history
Fixed Jail position to work with interiors
  • Loading branch information
PLASMAchicken authored Oct 9, 2022
2 parents f345b84 + 6eb8e80 commit 38e7de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BPEssentials/Commands/Moderation/Jail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void Invoke(ShPlayer player, ShPlayer target, float timeInSeconds)
}
var getPositionT = jail.mainT;
target.svPlayer.SvTrySetJob(BPAPI.Instance.PrisonerIndex, true, false);
target.GetExtendedPlayer().ResetAndSavePosition(getPositionT.position, getPositionT.rotation, 0);
target.GetExtendedPlayer().ResetAndSavePosition(getPositionT.position, getPositionT.rotation, getPositionT.parent.GetSiblingIndex());
target.svPlayer.SvClearCrimes();
target.svPlayer.RemoveItemsJail();
target.StartCoroutine(target.svPlayer.JailTimer(timeInSeconds));
Expand Down

0 comments on commit 38e7de0

Please sign in to comment.