From c6843a2c6d1a1dcbf81fb30d45621d3be4dd2fc9 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Fri, 26 Aug 2011 14:08:02 +0200 Subject: [PATCH] When flipping a door upside-down, the top and bottom parts are now swapped. --- src/main/java/com/sk89q/worldedit/data/BlockData.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/sk89q/worldedit/data/BlockData.java b/src/main/java/com/sk89q/worldedit/data/BlockData.java index 1c5648b63..8615d3567 100644 --- a/src/main/java/com/sk89q/worldedit/data/BlockData.java +++ b/src/main/java/com/sk89q/worldedit/data/BlockData.java @@ -390,6 +390,7 @@ public final class BlockData { case BlockID.WOODEN_DOOR: case BlockID.IRON_DOOR: + data ^= flipZ << 3; switch (data & 0x3) { case 0: return data + flipX + 3*flipY; case 1: return data - flipX + flipY;