mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-28 18:06:42 +00:00
Fixed floating point inaccuracy error with getBlock#(), fixed //rotate.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user