SPIGOT-4020: Fix DustOptions colouring
Dieser Commit ist enthalten in:
Ursprung
15036eb75b
Commit
b9fd5c60e9
@ -136,7 +136,7 @@ public enum CraftParticle {
|
|||||||
if (particle.getDataType() == Particle.DustOptions.class) {
|
if (particle.getDataType() == Particle.DustOptions.class) {
|
||||||
Particle.DustOptions data = (Particle.DustOptions) obj;
|
Particle.DustOptions data = (Particle.DustOptions) obj;
|
||||||
Color color = data.getColor();
|
Color color = data.getColor();
|
||||||
return new ParticleParamRedstone(color.getRed(), color.getGreen(), color.getBlue(), data.getSize());
|
return new ParticleParamRedstone(color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, data.getSize());
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException(particle.getDataType().toString());
|
throw new IllegalArgumentException(particle.getDataType().toString());
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren