Archived
0

fix: remove unboxing

This commit is contained in:
2018-11-19 13:28:58 +03:00
parent 217a329b5e
commit 5897183561

View File

@@ -33,15 +33,15 @@ public class EntityLocation implements Cloneable {
} }
public int getBlockX() { public int getBlockX() {
return Double.valueOf(Math.floor(x)).intValue(); return (int) Math.floor(x);
} }
public int getBlockY() { public int getBlockY() {
return Double.valueOf(Math.floor(y)).intValue(); return (int) Math.floor(y);
} }
public int getBlockZ() { public int getBlockZ() {
return Double.valueOf(Math.floor(z)).intValue(); return (int) Math.floor(z);
} }
@Override @Override