mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fix issue with scaling transforms on blocks.
This commit is contained in:
parent
ceec170be9
commit
52f1a7d2d4
@ -155,7 +155,7 @@ public class BlockTransformExtent extends AbstractDelegateExtent {
|
|||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
private static StateValue getNewStateValue(State state, Transform transform, Vector oldDirection) {
|
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;
|
StateValue newValue = null;
|
||||||
double closest = -2;
|
double closest = -2;
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user