geforkt von Mirrors/FastAsyncWorldEdit
Fix #1311
Dieser Commit ist enthalten in:
Ursprung
4f68fb0e26
Commit
b11a67e435
@ -52,7 +52,6 @@ import javax.annotation.Nullable;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.EnumSet;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
@ -107,7 +106,6 @@ public class BlockTransformExtent extends ResettableExtent {
|
|||||||
WEST, PropertyKey.WEST
|
WEST, PropertyKey.WEST
|
||||||
);
|
);
|
||||||
|
|
||||||
private static final EnumSet<Direction> NESW = EnumSet.range(NORTH, WEST);
|
|
||||||
private final int[] ALL = new int[0];
|
private final int[] ALL = new int[0];
|
||||||
private Transform transform;
|
private Transform transform;
|
||||||
private Transform transformInverse;
|
private Transform transformInverse;
|
||||||
@ -423,10 +421,10 @@ public class BlockTransformExtent extends ResettableExtent {
|
|||||||
.hasProperty(PropertyKey.WEST)) {
|
.hasProperty(PropertyKey.WEST)) {
|
||||||
|
|
||||||
BlockState tmp = state;
|
BlockState tmp = state;
|
||||||
for (Direction direction : NESW) {
|
for (Map.Entry<Direction, PropertyKey> entry : directionMap.entrySet()) {
|
||||||
Direction newDir = findClosest(transform.apply(direction.toVector()), Flag.CARDINAL);
|
Direction newDir = findClosest(transform.apply(entry.getKey().toVector()), Flag.CARDINAL);
|
||||||
if (newDir != null) {
|
if (newDir != null) {
|
||||||
Object dirState = tmp.getState(directionMap.get(direction));
|
Object dirState = state.getState(entry.getValue());
|
||||||
tmp = tmp.with(directionMap.get(newDir), dirState);
|
tmp = tmp.with(directionMap.get(newDir), dirState);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren