mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-02 19:36:41 +00:00
Change Vector hash codes (#456)
And add additional unit vectors where needed.
This commit is contained in:
@ -58,8 +58,10 @@ public enum Direction {
|
||||
|
||||
private final Vector3 direction;
|
||||
private final int flags;
|
||||
private final BlockVector3 blockPoint;
|
||||
|
||||
Direction(Vector3 vector, int flags) {
|
||||
this.blockPoint = vector.toBlockPoint();
|
||||
this.direction = vector.normalize();
|
||||
this.flags = flags;
|
||||
}
|
||||
@ -121,7 +123,7 @@ public enum Direction {
|
||||
* @return the vector
|
||||
*/
|
||||
public BlockVector3 toBlockVector() {
|
||||
return direction.toBlockPoint();
|
||||
return blockPoint;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user