Skip to content

Commit 6eb8e80

Browse files
author
xiluisx
committed
Fixed Jail position to work with interiors
1 parent f345b84 commit 6eb8e80

File tree

1 file changed

+1
-1
lines changed
  • src/BPEssentials/Commands/Moderation

1 file changed

+1
-1
lines changed

src/BPEssentials/Commands/Moderation/Jail.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void Invoke(ShPlayer player, ShPlayer target, float timeInSeconds)
2222
}
2323
var getPositionT = jail.mainT;
2424
target.svPlayer.SvTrySetJob(BPAPI.Instance.PrisonerIndex, true, false);
25-
target.GetExtendedPlayer().ResetAndSavePosition(getPositionT.position, getPositionT.rotation, 0);
25+
target.GetExtendedPlayer().ResetAndSavePosition(getPositionT.position, getPositionT.rotation, getPositionT.parent.GetSiblingIndex());
2626
target.svPlayer.SvClearCrimes();
2727
target.svPlayer.RemoveItemsJail();
2828
target.StartCoroutine(target.svPlayer.JailTimer(timeInSeconds));

0 commit comments

Comments
 (0)