summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/operation/BackupOperation.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-01-04 19:09:33 +0800
committerKeuin <[email protected]>2022-01-08 19:13:50 +0800
commit549cb62df5065b4e3617633d5b2b062c925a9279 (patch)
tree37f122f9a2428bfaa8b7adebeeee9b2faa3d594c /src/main/java/com/keuin/kbackupfabric/operation/BackupOperation.java
parentef310895b62682b4c87487a532455738da7dbedd (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.java4
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();