13
0
geforkt von Mirrors/Paper

Added hashCode and equals to CraftWorld

By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2011-10-10 22:45:52 +01:00
Ursprung bac90b1d90
Commit 9ad2b97138

Datei anzeigen

@ -870,4 +870,23 @@ public class CraftWorld implements World {
}
}
}
@Override
public int hashCode() {
return getUID().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final CraftWorld other = (CraftWorld) obj;
return this.getUID() == other.getUID();
}
}