mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 12:35:15 +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