From 43865e8e67e2a36dce47e5da24222df861e04a5c Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Sat, 5 Jan 2013 17:00:25 -0600 Subject: [PATCH] Update unit test to reflect firework color fix. Fixes BUKKIT-3382 The ItemDye color-int array uses dye data values, not wool. --- src/test/java/org/bukkit/DyeColorsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/bukkit/DyeColorsTest.java b/src/test/java/org/bukkit/DyeColorsTest.java index 7d45d2ff5b..2ce79456cd 100644 --- a/src/test/java/org/bukkit/DyeColorsTest.java +++ b/src/test/java/org/bukkit/DyeColorsTest.java @@ -41,7 +41,7 @@ public class DyeColorsTest extends AbstractTestingBase { @Test public void checkFireworkColor() { Color color = dye.getFireworkColor(); - int nmsColor = ItemDye.b[dye.getWoolData()]; + int nmsColor = ItemDye.b[dye.getDyeData()]; assertThat(color, is(Color.fromRGB(nmsColor))); } }