diff options
author | Keuin <[email protected]> | 2022-01-04 19:09:33 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-01-04 19:18:44 +0800 |
commit | 83b689216daf35d3da8f33be9a62c46403a577e5 (patch) | |
tree | 692d558c4d02400e03142365886c01b0edc23480 /src/main/java/com/keuin/kbackupfabric/operation/BackupOperation.java | |
parent | 7ca4ac1080d8dd896f16215bda1639c4bf516dcd (diff) |
Make it compile for Minecraft 1.18.
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/operation/BackupOperation.java')
-rw-r--r-- | src/main/java/com/keuin/kbackupfabric/operation/BackupOperation.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/operation/BackupOperation.java b/src/main/java/com/keuin/kbackupfabric/operation/BackupOperation.java index 1798fb7..75977a0 100644 --- a/src/main/java/com/keuin/kbackupfabric/operation/BackupOperation.java +++ b/src/main/java/com/keuin/kbackupfabric/operation/BackupOperation.java @@ -32,7 +32,7 @@ public class BackupOperation extends InvokableAsyncBlockingOperation { @Override protected void async() { String backupSaveDirectory = ""; - MinecraftServer server = context.getSource().getMinecraftServer(); + MinecraftServer server = context.getSource().getServer(); boolean success = false; // only success when everything is done try { //// Do our main backup logic @@ -72,7 +72,7 @@ public class BackupOperation extends InvokableAsyncBlockingOperation { PrintUtil.broadcast("Making backup, please wait ..."); // Get server - MinecraftServer server = context.getSource().getMinecraftServer(); + MinecraftServer server = context.getSource().getServer(); // Save old auto-save switch state for restoration after finished oldWorldsSavingDisabled.clear(); |