summaryrefslogtreecommitdiffstats
path: root/src/test/java/org
diff options
context:
space:
mode:
authorWesley Wolfe <weswolf@aol.com>2013-01-05 16:45:34 -0600
committerWesley Wolfe <weswolf@aol.com>2013-01-05 17:15:49 -0600
commit182681e384a1f7e4b6944ad5c6eda0710fb1bff9 (patch)
tree80b9d164aa713bf0215f8123cb18055be7a7ebb5 /src/test/java/org
parentbaaf8e1d864da19e374211b4c2dd1aa49d564561 (diff)
downloadcraftbukkit-182681e384a1f7e4b6944ad5c6eda0710fb1bff9.tar
craftbukkit-182681e384a1f7e4b6944ad5c6eda0710fb1bff9.tar.gz
craftbukkit-182681e384a1f7e4b6944ad5c6eda0710fb1bff9.tar.lz
craftbukkit-182681e384a1f7e4b6944ad5c6eda0710fb1bff9.tar.xz
craftbukkit-182681e384a1f7e4b6944ad5c6eda0710fb1bff9.zip
Update calls to DyeColor getData and getByData. Addresses BUKKIT-2786
These two methods are now deprecated and replaced by the strictly equivalent calls using wool data.
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/bukkit/DyeColorsTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/bukkit/DyeColorsTest.java b/src/test/java/org/bukkit/DyeColorsTest.java
index 8b2e8a7c..7d45d2ff 100644
--- a/src/test/java/org/bukkit/DyeColorsTest.java
+++ b/src/test/java/org/bukkit/DyeColorsTest.java
@@ -33,7 +33,7 @@ public class DyeColorsTest extends AbstractTestingBase {
@Test
public void checkColor() {
Color color = dye.getColor();
- float[] nmsColorArray = EntitySheep.d[dye.getData()];
+ float[] nmsColorArray = EntitySheep.d[dye.getWoolData()];
Color nmsColor = Color.fromRGB((int) (nmsColorArray[0] * 255), (int) (nmsColorArray[1] * 255), (int) (nmsColorArray[2] * 255));
assertThat(color, is(nmsColor));
}
@@ -41,7 +41,7 @@ public class DyeColorsTest extends AbstractTestingBase {
@Test
public void checkFireworkColor() {
Color color = dye.getFireworkColor();
- int nmsColor = ItemDye.b[dye.getData()];
+ int nmsColor = ItemDye.b[dye.getWoolData()];
assertThat(color, is(Color.fromRGB(nmsColor)));
}
}