mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-04 22:51:29 +01:00
Update unit test to reflect firework color fix. Fixes BUKKIT-3382
The ItemDye color-int array uses dye data values, not wool. By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
parent
e9c52a3ffc
commit
58090423c0
@ -41,7 +41,7 @@ public class DyeColorsTest extends AbstractTestingBase {
|
|||||||
@Test
|
@Test
|
||||||
public void checkFireworkColor() {
|
public void checkFireworkColor() {
|
||||||
Color color = dye.getFireworkColor();
|
Color color = dye.getFireworkColor();
|
||||||
int nmsColor = ItemDye.b[dye.getWoolData()];
|
int nmsColor = ItemDye.b[dye.getDyeData()];
|
||||||
assertThat(color, is(Color.fromRGB(nmsColor)));
|
assertThat(color, is(Color.fromRGB(nmsColor)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user