mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Created a better plot hashcode thingy
This commit is contained in:
parent
a30e8eec9a
commit
87773d4929
@ -277,4 +277,14 @@ public class Plot implements Cloneable {
|
||||
PlotHelper.clear(plr, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int
|
||||
x = getId().x,
|
||||
z = getId().y;
|
||||
String
|
||||
xL = (x + "").length() + "",
|
||||
zL = (z + "").length() + "";
|
||||
return Integer.parseInt(xL + x + zL + z);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user