mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
Created a better plot hashcode thingy
This commit is contained in:
parent
a30e8eec9a
commit
87773d4929
1 changed files with 10 additions and 0 deletions
|
@ -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 a new issue