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
@@ -886,7 +886,7 @@ public class MySqlDatabase 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 (Connection connection = getConnection()) {
|
||||
@@ -935,7 +935,7 @@ public class MySqlDatabase 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 (Connection connection = getConnection()) {
|
||||
|
||||
Reference in new issue
Block a user