Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
Update unit test to reflect firework color fix. Fixes BUKKIT-3382
The ItemDye color-int array uses dye data values, not wool.
Dieser Commit ist enthalten in:
Ursprung
182681e384
Commit
43865e8e67
@ -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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren