Fixed floating point inaccuracy error with getBlock#(), fixed //rotate.

This commit is contained in:
sk89q
2010-10-17 15:17:24 -07:00
parent 383a475237
commit aa63f886ec
2 changed files with 17 additions and 15 deletions

View File

@ -96,7 +96,7 @@ public class Vector {
* @return the x
*/
public int getBlockX() {
return (int)x;
return (int)Math.round(x);
}
/**
@ -110,7 +110,7 @@ public class Vector {
* @return the y
*/
public int getBlockY() {
return (int)y;
return (int)Math.round(y);
}
/**
@ -124,7 +124,7 @@ public class Vector {
* @return the z
*/
public int getBlockZ() {
return (int)z;
return (int)Math.round(z);
}
/**