mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
parent
da264b52e1
commit
b796106dd7
@ -160,9 +160,12 @@ public class BlockTransformExtent extends ResettableExtent {
|
|||||||
} else {
|
} else {
|
||||||
List values = property.getValues();
|
List values = property.getValues();
|
||||||
PropertyKey key = property.getKey();
|
PropertyKey key = property.getKey();
|
||||||
if (key == PropertyKey.HALF) {
|
if (key == PropertyKey.HALF || values.contains("top")) {
|
||||||
return adapt(UP, DOWN);
|
return adapt(UP, DOWN);
|
||||||
}
|
}
|
||||||
|
if (values.contains("left")) {
|
||||||
|
return adapt(0L, combine(EAST, WEST), combine(NORTH, SOUTH));
|
||||||
|
}
|
||||||
if (key == PropertyKey.ROTATION) {
|
if (key == PropertyKey.ROTATION) {
|
||||||
List<Direction> directions = new ArrayList<>();
|
List<Direction> directions = new ArrayList<>();
|
||||||
for (Object value : values) {
|
for (Object value : values) {
|
||||||
@ -332,7 +335,11 @@ public class BlockTransformExtent extends ResettableExtent {
|
|||||||
if (property instanceof DirectionalProperty) {
|
if (property instanceof DirectionalProperty) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return directional.contains(property.getKey());
|
if (directional.contains(property.getKey())) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
List<?> values = property.getValues();
|
||||||
|
return (values.contains("top") || values.contains("left"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static BaseBlock transformBaseBlockNBT(BlockState transformed, CompoundTag tag, Transform transform) {
|
private static BaseBlock transformBaseBlockNBT(BlockState transformed, CompoundTag tag, Transform transform) {
|
||||||
|
Loading…
Reference in New Issue
Block a user