Added a few null pointer checks and performed minor touchups (tried improving a few equals, clone and hashCode methods).
This commit is contained in:
@@ -102,6 +102,10 @@ public class BlockVector extends Vector {
|
||||
*/
|
||||
@Override
|
||||
public BlockVector clone() {
|
||||
return new BlockVector(x, y, z);
|
||||
BlockVector v = (BlockVector)super.clone();
|
||||
v.x = x;
|
||||
v.y = y;
|
||||
v.z = z;
|
||||
return v;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user