fixed bug detected by checkstyle

This commit is contained in:
SpaceToad 2014-06-12 13:49:05 +02:00
parent 6389baa9cb
commit e60950db9b

View file

@ -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;