Fixed claims breakage.

This commit is contained in:
ryanhamshire 2015-03-28 20:58:24 -07:00
parent d3b63ba71b
commit a285d73ca0
2 changed files with 3 additions and 5 deletions

View File

@ -874,7 +874,6 @@ public class Claim
public ArrayList<String> getChunkStrings()
{
ArrayList<String> chunkStrings = new ArrayList<String>();
World world = this.getLesserBoundaryCorner().getWorld();
int smallX = this.getLesserBoundaryCorner().getBlockX() >> 4;
int smallZ = this.getLesserBoundaryCorner().getBlockZ() >> 4;
int largeX = this.getGreaterBoundaryCorner().getBlockX() >> 4;
@ -884,8 +883,7 @@ public class Claim
{
for(int z = smallZ; z <= largeZ; z++)
{
StringBuilder builder = new StringBuilder(String.valueOf(x)).append(world.getName()).append(z);
chunkStrings.add(builder.toString());
chunkStrings.add(String.valueOf(x) + z);
}
}

View File

@ -619,8 +619,8 @@ public abstract class DataStore
return Collections.unmodifiableCollection(this.claims);
}
//gets a unique, persistent identifier string for a chunk
private String getChunkString(Location location)
//gets an almost-unique, persistent identifier string for a chunk
String getChunkString(Location location)
{
return String.valueOf(location.getBlockX() >> 4) + (location.getBlockZ() >> 4);
}