3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-05 02:50:05 +01:00

Add directionals for chests and slabs "type" block state

Fixes #987
Dieser Commit ist enthalten in:
dordsor21 2021-06-11 15:25:52 +01:00
Ursprung da264b52e1
Commit b796106dd7
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -160,9 +160,12 @@ public class BlockTransformExtent extends ResettableExtent {
} else {
List values = property.getValues();
PropertyKey key = property.getKey();
if (key == PropertyKey.HALF) {
if (key == PropertyKey.HALF || values.contains("top")) {
return adapt(UP, DOWN);
}
if (values.contains("left")) {
return adapt(0L, combine(EAST, WEST), combine(NORTH, SOUTH));
}
if (key == PropertyKey.ROTATION) {
List<Direction> directions = new ArrayList<>();
for (Object value : values) {
@ -332,7 +335,11 @@ public class BlockTransformExtent extends ResettableExtent {
if (property instanceof DirectionalProperty) {
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) {