Fixed claims breakage.
This commit is contained in:
1 parent
d3b63ba71b
commit
a285d73ca0
2 files changed
+3
-5
No files matched your search
@@ -874,7 +874,6 @@ public class Claim
|
|||||||
public ArrayList<String> getChunkStrings()
|
public ArrayList<String> getChunkStrings()
|
||||||
{
|
{
|
||||||
ArrayList<String> chunkStrings = new ArrayList<String>();
|
ArrayList<String> chunkStrings = new ArrayList<String>();
|
||||||
World world = this.getLesserBoundaryCorner().getWorld();
|
|
||||||
int smallX = this.getLesserBoundaryCorner().getBlockX() >> 4;
|
int smallX = this.getLesserBoundaryCorner().getBlockX() >> 4;
|
||||||
int smallZ = this.getLesserBoundaryCorner().getBlockZ() >> 4;
|
int smallZ = this.getLesserBoundaryCorner().getBlockZ() >> 4;
|
||||||
int largeX = this.getGreaterBoundaryCorner().getBlockX() >> 4;
|
int largeX = this.getGreaterBoundaryCorner().getBlockX() >> 4;
|
||||||
@@ -884,8 +883,7 @@ public class Claim
|
|||||||
{
|
{
|
||||||
for(int z = smallZ; z <= largeZ; z++)
|
for(int z = smallZ; z <= largeZ; z++)
|
||||||
{
|
{
|
||||||
StringBuilder builder = new StringBuilder(String.valueOf(x)).append(world.getName()).append(z);
|
chunkStrings.add(String.valueOf(x) + z);
|
||||||
chunkStrings.add(builder.toString());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -619,8 +619,8 @@ public abstract class DataStore
|
|||||||
return Collections.unmodifiableCollection(this.claims);
|
return Collections.unmodifiableCollection(this.claims);
|
||||||
}
|
}
|
||||||
|
|
||||||
//gets a unique, persistent identifier string for a chunk
|
//gets an almost-unique, persistent identifier string for a chunk
|
||||||
private String getChunkString(Location location)
|
String getChunkString(Location location)
|
||||||
{
|
{
|
||||||
return String.valueOf(location.getBlockX() >> 4) + (location.getBlockZ() >> 4);
|
return String.valueOf(location.getBlockX() >> 4) + (location.getBlockZ() >> 4);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user