mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Database: Rename setHome and setWarp methods to "save" for consistency
This commit is contained in:
1 parent
a0c34743ef
commit
7a63e8c173
4 files changed
+13
-13
No files matched your search
@@ -901,7 +901,7 @@ public class SqLiteDatabase extends Database {
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompletableFuture<Void> setHome(@NotNull Home home) {
|
||||
public CompletableFuture<Void> saveHome(@NotNull Home home) {
|
||||
return CompletableFuture.runAsync(() -> getHome(home.uuid)
|
||||
.thenAccept(existingHome -> existingHome.ifPresentOrElse(presentHome -> {
|
||||
try {
|
||||
@@ -940,7 +940,7 @@ public class SqLiteDatabase extends Database {
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompletableFuture<Void> setWarp(@NotNull Warp warp) {
|
||||
public CompletableFuture<Void> saveWarp(@NotNull Warp warp) {
|
||||
return CompletableFuture.runAsync(() -> getWarp(warp.uuid)
|
||||
.thenAccept(existingHome -> existingHome.ifPresentOrElse(presentWarp -> {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user