Skip to content

Commit aafe4ea

Browse files
committed
Removing previous home if override enabled added.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 287a829 commit aafe4ea

File tree

1 file changed

+4
-0
lines changed
  • src/main/kotlin/com/mairwunnx/projectessentials/projectessentialshome/commands

1 file changed

+4
-0
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/projectessentialshome/commands/SetHomeCommand.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ object SetHomeCommand {
8383
return 0
8484
}
8585
}
86+
} else {
87+
homeModel.removeAll {
88+
it.home == homeName
89+
}
8690
}
8791

8892
homeModel.add(

0 commit comments

Comments
 (0)