Another fix for Prince Yukon of the apple farm
This commit is contained in:
parent
fe19fd440c
commit
e82cc37383
@ -12,15 +12,15 @@ public class FakeBoundingBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public double getX() {
|
public double getX() {
|
||||||
return xMod;
|
return xMod / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getY() {
|
public double getY() {
|
||||||
return yMod;
|
return yMod / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getZ() {
|
public double getZ() {
|
||||||
return zMod;
|
return zMod / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -259,33 +259,33 @@ public class ReflectionManager {
|
|||||||
stage++;
|
stage++;
|
||||||
switch (stage) {
|
switch (stage) {
|
||||||
case 1:
|
case 1:
|
||||||
x = field.getDouble(boundingBox);
|
x = field.getDouble(boundingBox) - oldBox.getX();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
y = field.getDouble(boundingBox);
|
y = field.getDouble(boundingBox) - oldBox.getY();
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
z = field.getDouble(boundingBox);
|
z = field.getDouble(boundingBox) - oldBox.getZ();
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
// if (entity.getType() != EntityType.PLAYER) {
|
// if (entity.getType() != EntityType.PLAYER) {
|
||||||
field.setDouble(boundingBox, x + newBox.getX());
|
field.setDouble(boundingBox, x + newBox.getX());
|
||||||
// }
|
// }
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
field.setDouble(boundingBox, y + newBox.getY());
|
field.setDouble(boundingBox, y + newBox.getY());
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
// if (entity.getType() != EntityType.PLAYER) {
|
// if (entity.getType() != EntityType.PLAYER) {
|
||||||
field.setDouble(boundingBox, z + newBox.getZ());
|
field.setDouble(boundingBox, z + newBox.getZ());
|
||||||
// }
|
// }
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Exception("Error while setting the bounding box, more doubles than I thought??");
|
throw new Exception("Error while setting the bounding box, more doubles than I thought??");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// setSize(entity, entitySize);
|
// setSize(entity, entitySize);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user