From 8506bef30b3f029b62e03bc4a2910f8d2731aa96 Mon Sep 17 00:00:00 2001 From: szymon Date: Sun, 6 Dec 2020 19:19:16 +0100 Subject: [PATCH] Added error catching --- .../textile_backup/core/create/BackupHelper.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/szum123321/textile_backup/core/create/BackupHelper.java b/src/main/java/net/szum123321/textile_backup/core/create/BackupHelper.java index bae4a1d..aeff137 100644 --- a/src/main/java/net/szum123321/textile_backup/core/create/BackupHelper.java +++ b/src/main/java/net/szum123321/textile_backup/core/create/BackupHelper.java @@ -62,7 +62,14 @@ public class BackupHelper { Statics.LOGGER.sendInfoAL(ctx, "Saving server..."); ctx.getServer().getPlayerManager().saveAllPlayerData(); - ctx.getServer().save(true, true, true); + + try { + ctx.getServer().save(false, true, true); + } catch (Exception e) { + Statics.LOGGER.error("An exception occurred when trying to save world!"); + Statics.LOGGER.error("This is known issue (See https://github.com/Szum123321/textile_backup/issues/42)"); + Statics.LOGGER.error("Please let me know about this situation (include below error, mod's config, additional mods, where is the server running etc.", e); + } } return new MakeBackupRunnable(ctx);