Finished back compat with buggy beta versions.

Now claim and player data that were written by beta versions will be
automatically carried forward and used by newer stable versions.
This commit is contained in:
ryanhamshire 2014-09-15 20:13:17 -07:00
parent 23f8272a70
commit fe473ebcb8
2 changed files with 11 additions and 4 deletions

View File

@ -159,10 +159,17 @@ public class FlatFileDataStore extends DataStore
while(line != null)
{
//Let's skip the UUID lines from previous versions
//skip any SUB:### lines from previous versions
if(line.startsWith("SUB:"))
{
line = inStream.readLine();
}
//skip any UUID lines from previous versions
Matcher match = uuidpattern.matcher(line.trim());
if(match.find()) {
inStream.readLine();
if(match.find())
{
line = inStream.readLine();
}
//first line is lesser boundary corner location

View File

@ -1210,7 +1210,7 @@ class PlayerEventHandler implements Listener
return;
}
//if he's investigating a claim
//if he's investigating a claim
else if(materialInHand == GriefPrevention.instance.config_claims_investigationTool)
{
//air indicates too far away