diff options
author | md_5 <git@md-5.net> | 2018-07-18 16:40:31 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-18 16:40:31 +1000 |
commit | b9fd5c60e9a746197ced7089d27af43551b84dd2 (patch) | |
tree | df0fd2fc31fc65dc95bb05aa85fc0c64c4e054da /src/main/java/org | |
parent | 15036eb75be1935b76c1e63078e39c6bb229fac1 (diff) | |
download | craftbukkit-b9fd5c60e9a746197ced7089d27af43551b84dd2.tar craftbukkit-b9fd5c60e9a746197ced7089d27af43551b84dd2.tar.gz craftbukkit-b9fd5c60e9a746197ced7089d27af43551b84dd2.tar.lz craftbukkit-b9fd5c60e9a746197ced7089d27af43551b84dd2.tar.xz craftbukkit-b9fd5c60e9a746197ced7089d27af43551b84dd2.zip |
SPIGOT-4020: Fix DustOptions colouring
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftParticle.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftParticle.java b/src/main/java/org/bukkit/craftbukkit/CraftParticle.java index 291f46fe..7e1f4e3f 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftParticle.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftParticle.java @@ -136,7 +136,7 @@ public enum CraftParticle { if (particle.getDataType() == Particle.DustOptions.class) { Particle.DustOptions data = (Particle.DustOptions) obj; 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()); } |