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