Created a better plot hashcode thingy

This commit is contained in:
Sauilitired 2014-11-06 09:29:49 +01:00
parent a30e8eec9a
commit 87773d4929

View File

@ -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);
}
}