TODO: fix door hinge placement on rotate/flip sometimes
This commit is contained in:
dordsor21 2021-07-20 20:49:13 +01:00
parent ca1744aa97
commit 5f8addbb5b
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -165,7 +165,12 @@ public class BlockTransformExtent extends ResettableExtent {
return adapt(UP, DOWN);
}
if (values.contains("left")) {
return adapt(0L, combine(EAST, WEST), combine(NORTH, SOUTH));
if (key == PropertyKey.SHAPE) {
return adapt(combine(EAST, WEST), combine(NORTH, SOUTH));
} else if (key == PropertyKey.HINGE) {
//TODO: hinges are slightly funky still
return adapt(combine(NORTH, EAST), combine(SOUTH, WEST));
}
}
if (key == PropertyKey.ROTATION) {
List<Direction> directions = new ArrayList<>();