Update upstream

54ed9e8 Add support for Y-offsets with back direction (2164)
Dieser Commit ist enthalten in:
Alexander Brandes 2022-08-07 09:13:09 +02:00
Ursprung e78277e158
Commit c520e1a686
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C

Datei anzeigen

@ -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":