From 2b29d1a2532656b018cd6f2678087709fe46b8ac Mon Sep 17 00:00:00 2001 From: Jim Bilbrey Date: Mon, 14 Jan 2013 00:53:38 -0500 Subject: [PATCH] update //flip axis to modern directions tested and working with: -no args when looking horizontally and vertically -n/s/e/w -f/b/l/r/u/d --- src/main/java/com/sk89q/worldedit/CuboidClipboard.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/CuboidClipboard.java b/src/main/java/com/sk89q/worldedit/CuboidClipboard.java index 7e6b6018b..191eb8b3c 100644 --- a/src/main/java/com/sk89q/worldedit/CuboidClipboard.java +++ b/src/main/java/com/sk89q/worldedit/CuboidClipboard.java @@ -195,7 +195,7 @@ public class CuboidClipboard { final int height = getHeight(); switch (dir) { - case NORTH_SOUTH: + case WEST_EAST: final int wid = (int) Math.ceil(width / 2.0f); for (int xs = 0; xs < wid; ++xs) { for (int z = 0; z < length; ++z) { @@ -214,7 +214,7 @@ public class CuboidClipboard { break; - case WEST_EAST: + case NORTH_SOUTH: final int len = (int) Math.ceil(length / 2.0f); for (int zs = 0; zs < len; ++zs) { for (int x = 0; x < width; ++x) {