From ec4dbac165154074e51bd610e55f945cf1092e0c Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Mon, 13 Aug 2012 23:23:50 +0200 Subject: [PATCH] Added 1.3 blocks to getAttachment. --- src/main/java/com/sk89q/worldedit/blocks/BlockType.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/blocks/BlockType.java b/src/main/java/com/sk89q/worldedit/blocks/BlockType.java index cabcfed28..078b94646 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/BlockType.java +++ b/src/main/java/com/sk89q/worldedit/blocks/BlockType.java @@ -1365,6 +1365,13 @@ public enum BlockType { dataAttachments.put(typeDataKey(BlockID.VINE, 0), PlayerDirection.UP); addCardinals(BlockID.VINE, 1, 2, 4, 8); nonDataAttachments.put(BlockID.NETHER_WART, PlayerDirection.DOWN); + for (int offset = 0; offset <= 4; offset += 4) { + addCardinals(BlockID.COCOA_PLANT, offset + 0, offset + 1, offset + 2, offset + 3); + } + for (int offset = 0; offset <= 4; offset += 4) { + addCardinals(BlockID.TRIPWIRE_HOOK, offset + 2, offset + 3, offset + 0, offset + 1); + } + nonDataAttachments.put(BlockID.TRIPWIRE, PlayerDirection.DOWN); } /**