summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/operation/BackupOperation.java
diff options
context:
space:
mode:
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();