Paper/CraftBukkit-Patches/0116-Add-More-Information-to-session.lock-Errors.patch

40 lines
1.9 KiB
Diff
Raw Normal View History

2016-03-01 00:23:45 +00:00
From 514102b4812128ada9ef5ad40e69c9bc69836991 Mon Sep 17 00:00:00 2001
From: Suddenly <suddenly@suddenly.coffee>
Date: Sat, 5 Jul 2014 16:56:44 +0100
Subject: [PATCH] Add More Information to session.lock Errors
diff --git a/src/main/java/net/minecraft/server/WorldNBTStorage.java b/src/main/java/net/minecraft/server/WorldNBTStorage.java
2016-02-29 21:33:06 +00:00
index 81e8bdb..df82c14 100644
--- a/src/main/java/net/minecraft/server/WorldNBTStorage.java
+++ b/src/main/java/net/minecraft/server/WorldNBTStorage.java
2016-02-29 21:33:06 +00:00
@@ -59,7 +59,7 @@ public class WorldNBTStorage implements IDataManager, IPlayerFileData {
2014-11-28 01:17:45 +00:00
} catch (IOException ioexception) {
ioexception.printStackTrace();
- throw new RuntimeException("Failed to check session lock, aborting");
+ throw new RuntimeException("Failed to check session lock for world located at " + this.baseDir + ", aborting. Stop the server and delete the session.lock in this world to prevent further issues."); // Spigot
}
}
2016-02-29 21:33:06 +00:00
@@ -74,14 +74,14 @@ public class WorldNBTStorage implements IDataManager, IPlayerFileData {
try {
if (datainputstream.readLong() != this.sessionId) {
- throw new ExceptionWorldConflict("The save is being accessed from another location, aborting");
+ throw new ExceptionWorldConflict("The save for world located at " + this.baseDir + " is being accessed from another location, aborting"); // Spigot
}
} finally {
datainputstream.close();
}
2014-11-28 01:17:45 +00:00
} catch (IOException ioexception) {
- throw new ExceptionWorldConflict("Failed to check session lock, aborting");
+ throw new ExceptionWorldConflict("Failed to check session lock for world located at " + this.baseDir + ", aborting. Stop the server and delete the session.lock in this world to prevent further issues."); // Spigot
}
}
--
2016-02-29 21:33:06 +00:00
2.5.0