fixed bug detected by checkstyle
This commit is contained in:
parent
6389baa9cb
commit
e60950db9b
1 changed files with 2 additions and 2 deletions
|
@ -475,10 +475,10 @@ public class EntityRobot extends EntityRobotBase implements
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void aimItemAt(int x, int y, int z) {
|
public void aimItemAt(int x, int y, int z) {
|
||||||
float itemAngle1 = (float) Math.atan2(z - Math.floor(posZ),
|
itemAngle1 = (float) Math.atan2(z - Math.floor(posZ),
|
||||||
x - Math.floor(posX));
|
x - Math.floor(posX));
|
||||||
|
|
||||||
float itemAngle2 = 0;
|
itemAngle2 = 0;
|
||||||
|
|
||||||
if (Math.floor(posY) < y) {
|
if (Math.floor(posY) < y) {
|
||||||
itemAngle2 = (float) -Math.PI / 4;
|
itemAngle2 = (float) -Math.PI / 4;
|
||||||
|
|
Loading…
Reference in a new issue