From 6f66d7407ab64b3c2a85ce14cd80b8ee0689c92c Mon Sep 17 00:00:00 2001 From: Peter Olson Date: Tue, 3 Dec 2013 21:33:30 -0800 Subject: [PATCH] Specify MaterialData for Acacia and Dark Oak stairs. Fixes BUKKIT-5037 When Minecraft 1.7 was released, Acacia and Dark Oak Stairs were added. While Bukkit added them to Material.java, it did not add the MaterialData mapping of them to Stairs.class. Currently getAscendingDirection() and other stair-specific functions can not be used on these new stairs. This commit fixes that by adding the mapping needed. Pulled from PR #977 --- src/main/java/org/bukkit/Material.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java index 576d984c..13d2cb74 100644 --- a/src/main/java/org/bukkit/Material.java +++ b/src/main/java/org/bukkit/Material.java @@ -227,8 +227,8 @@ public enum Material { STAINED_GLASS_PANE(160), LEAVES_2(161), LOG_2(162), - ACACIA_STAIRS(163), - DARK_OAK_STAIRS(164), + ACACIA_STAIRS(163, Stairs.class), + DARK_OAK_STAIRS(164, Stairs.class), HAY_BLOCK(170), CARPET(171), HARD_CLAY(172),