Fixed claims breakage.
This commit is contained in:
parent
d3b63ba71b
commit
a285d73ca0
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user