Update upstream

54ed9e8 Add support for Y-offsets with back direction (2164)
This commit is contained in:
Alexander Brandes 2022-08-07 09:13:09 +02:00
parent e78277e158
commit c520e1a686
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -602,7 +602,12 @@ public final class WorldEdit {
case "b": case "b":
case "back": case "back":
return getDirectionRelative(player, 180); Direction dir = getDirectionRelative(player, 180);
if (dir.isUpright()) {
// If this is an upright direction, flip it.
dir = dir == Direction.UP ? Direction.DOWN : Direction.UP;
}
return dir;
case "l": case "l":
case "left": case "left":