From 51c868472179935a7d4fcd82b335ef9ddfe07ea8 Mon Sep 17 00:00:00 2001 From: Suddenly 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 index 0e0ebd403..a5157269c 100644 --- a/src/main/java/net/minecraft/server/WorldNBTStorage.java +++ b/src/main/java/net/minecraft/server/WorldNBTStorage.java @@ -62,7 +62,7 @@ public class WorldNBTStorage implements IDataManager, IPlayerFileData { } 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 } } @@ -77,14 +77,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(); } } 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 } } -- 2.17.1