Skip to content

Commit af93761

Browse files
committed
Back location commiting before teleporting to home.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 72407a2 commit af93761

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/com/mairwunnx/projectessentials/home/commands

1 file changed

+1
-1
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/home/commands/HomeCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ object HomeCommand : CommandBase(homeLiteral, false) {
3535
user.homes.asSequence().find {
3636
it.home == name
3737
}?.let {
38+
BackLocationAPI.commit(player)
3839
teleportToHome(player, it).also {
39-
BackLocationAPI.commit(player)
4040
out("success", name).also { super.process(context) }
4141
}
4242
} ?: run { out("not_found", name) }

0 commit comments

Comments
 (0)