From 7a3ddfe7bcdf67c35177d267244964ae3166684d Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Mon, 8 Aug 2011 09:19:24 +0200 Subject: [PATCH] Fixed //flip sometimes throwing errors about unknown directions. --- src/main/java/com/sk89q/worldedit/WorldEdit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/WorldEdit.java b/src/main/java/com/sk89q/worldedit/WorldEdit.java index a9e936929..69985fba7 100644 --- a/src/main/java/com/sk89q/worldedit/WorldEdit.java +++ b/src/main/java/com/sk89q/worldedit/WorldEdit.java @@ -745,13 +745,13 @@ public class WorldEdit { dir = player.getCardinalDirection(); } - if (dirStr.charAt(0) == 'w' || dir == PlayerDirection.EAST) { + if (dirStr.charAt(0) == 'w' || dir == PlayerDirection.WEST) { return CuboidClipboard.FlipDirection.WEST_EAST; } else if (dirStr.charAt(0) == 'e' || dir == PlayerDirection.EAST) { return CuboidClipboard.FlipDirection.WEST_EAST; } else if (dirStr.charAt(0) == 's' || dir == PlayerDirection.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; } else if (dirStr.charAt(0) == 'u') { return CuboidClipboard.FlipDirection.UP_DOWN;