[Bleeding] Cleanup clone methods.

By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
Bukkit/Spigot
2012-02-14 01:49:06 -06:00
parent ec40583deb
commit 8bc2cf4969
41 changed files with 204 additions and 30 deletions

View File

@@ -472,19 +472,10 @@ public class Location implements Cloneable {
@Override
public Location clone() {
try {
Location l = (Location) super.clone();
l.world = world;
l.x = x;
l.y = y;
l.z = z;
l.yaw = yaw;
l.pitch = pitch;
return l;
return (Location) super.clone();
} catch (CloneNotSupportedException e) {
e.printStackTrace();
throw new Error(e);
}
return null;
}
/**