From b9fd5c60e9a746197ced7089d27af43551b84dd2 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 18 Jul 2018 16:40:31 +1000 Subject: [PATCH] SPIGOT-4020: Fix DustOptions colouring --- src/main/java/org/bukkit/craftbukkit/CraftParticle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftParticle.java b/src/main/java/org/bukkit/craftbukkit/CraftParticle.java index 291f46fedd..7e1f4e3fa5 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()); }