3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 18:40:05 +01:00

Fixed //flip sometimes throwing errors about unknown directions.

Dieser Commit ist enthalten in:
TomyLobo 2011-08-08 09:19:24 +02:00
Ursprung 8d688165ee
Commit 7a3ddfe7bc

Datei anzeigen

@ -745,13 +745,13 @@ public class WorldEdit {
dir = player.getCardinalDirection(); dir = player.getCardinalDirection();
} }
if (dirStr.charAt(0) == 'w' || dir == PlayerDirection.EAST) { if (dirStr.charAt(0) == 'w' || dir == PlayerDirection.WEST) {
return CuboidClipboard.FlipDirection.WEST_EAST; return CuboidClipboard.FlipDirection.WEST_EAST;
} else if (dirStr.charAt(0) == 'e' || dir == PlayerDirection.EAST) { } else if (dirStr.charAt(0) == 'e' || dir == PlayerDirection.EAST) {
return CuboidClipboard.FlipDirection.WEST_EAST; return CuboidClipboard.FlipDirection.WEST_EAST;
} else if (dirStr.charAt(0) == 's' || dir == PlayerDirection.SOUTH) { } else if (dirStr.charAt(0) == 's' || dir == PlayerDirection.SOUTH) {
return CuboidClipboard.FlipDirection.NORTH_SOUTH; return CuboidClipboard.FlipDirection.NORTH_SOUTH;
} else if (dirStr.charAt(0) == 'n' || dir == PlayerDirection.SOUTH) { } else if (dirStr.charAt(0) == 'n' || dir == PlayerDirection.NORTH) {
return CuboidClipboard.FlipDirection.NORTH_SOUTH; return CuboidClipboard.FlipDirection.NORTH_SOUTH;
} else if (dirStr.charAt(0) == 'u') { } else if (dirStr.charAt(0) == 'u') {
return CuboidClipboard.FlipDirection.UP_DOWN; return CuboidClipboard.FlipDirection.UP_DOWN;