Skip to content

Commit

Permalink
Added BlockVector[2D].toBlockVector[2D] overrrides.
Browse files Browse the repository at this point in the history
This returns the current object, for an instant speed boost :)
  • Loading branch information
TomyLobo committed Jan 5, 2012
1 parent 8a24fd9 commit 5557582
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/sk89q/worldedit/BlockVector.java
Expand Up @@ -97,4 +97,9 @@ public int hashCode() {
(Integer.valueOf((int) y).hashCode() << 12) ^
Integer.valueOf((int) z).hashCode();
}

@Override
public BlockVector toBlockVector() {
return this;
}
}
5 changes: 5 additions & 0 deletions src/main/java/com/sk89q/worldedit/BlockVector2D.java
Expand Up @@ -90,4 +90,9 @@ public int hashCode() {
return (Integer.valueOf((int) x).hashCode() >> 13) ^
Integer.valueOf((int) z).hashCode();
}

@Override
public BlockVector2D toBlockVector2D() {
return this;
}
}

0 comments on commit 5557582

Please sign in to comment.