Fix issue with scaling transforms on blocks.

This commit is contained in:
sk89q 2014-07-10 21:05:16 -07:00
parent ceec170be9
commit 52f1a7d2d4

View File

@ -155,7 +155,7 @@ public class BlockTransformExtent extends AbstractDelegateExtent {
*/
@Nullable
private static StateValue getNewStateValue(State state, Transform transform, Vector oldDirection) {
Vector newDirection = transform.apply(oldDirection).normalize();
Vector newDirection = transform.apply(oldDirection).subtract(transform.apply(Vector.ZERO)).normalize();
StateValue newValue = null;
double closest = -2;
boolean found = false;