More boot fixes.

This commit is contained in:
ryanhamshire 2015-12-10 14:41:55 -08:00
parent 4229a408cf
commit 3611c09e7d
2 changed files with 6 additions and 3 deletions

View File

@ -257,7 +257,7 @@ public class DatabaseDataStore extends DataStore
{
if(e.getMessage().contains("World not found"))
{
GriefPrevention.AddLogEntry("Failed to load a claim because its world isn't loaded (yet?). Please delete the claim or contact the GriefPrevention developer with information about which plugin(s) you're using to load or create worlds.");
GriefPrevention.AddLogEntry("Failed to load a claim because its world isn't loaded (yet?). Please delete the claim or contact the GriefPrevention developer with information about which plugin(s) you're using to load or create worlds. " + lesserCornerString);
continue;
}
else

View File

@ -237,6 +237,7 @@ public class FlatFileDataStore extends DataStore
}
BufferedReader inStream = null;
String lesserCornerString = "";
try
{
Claim topLevelClaim = null;
@ -260,7 +261,8 @@ public class FlatFileDataStore extends DataStore
}
//first line is lesser boundary corner location
Location lesserBoundaryCorner = this.locationFromString(line, validWorlds);
lesserCornerString = line;
Location lesserBoundaryCorner = this.locationFromString(lesserCornerString, validWorlds);
//second line is greater boundary corner location
line = inStream.readLine();
@ -359,8 +361,9 @@ public class FlatFileDataStore extends DataStore
{
if(e.getMessage().contains("World not found"))
{
GriefPrevention.AddLogEntry("Failed to load a claim because its world isn't loaded (yet?). Please delete the claim or contact the GriefPrevention developer with information about which plugin(s) you're using to load or create worlds. " + lesserCornerString);
inStream.close();
files[i].delete();
}
else
{