From 2fe4dad9da81956473d6aaadb7e51709f441227a Mon Sep 17 00:00:00 2001 From: David Vierra Date: Mon, 7 Aug 2017 17:29:03 -1000 Subject: [PATCH] Fix #2322 - particle bias Particles now wiggle along each secondary axis independently. --- .../java/vazkii/botania/client/fx/FXSparkle.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/vazkii/botania/client/fx/FXSparkle.java b/src/main/java/vazkii/botania/client/fx/FXSparkle.java index ab0f9096e..005f51ee3 100644 --- a/src/main/java/vazkii/botania/client/fx/FXSparkle.java +++ b/src/main/java/vazkii/botania/client/fx/FXSparkle.java @@ -210,22 +210,26 @@ public class FXSparkle extends Particle { float f = rand.nextFloat() * 0.05F + 0.025F; // Botania - made multiplier and add both smaller float f1 = enumfacing.getAxisDirection().getOffset(); - float secondary = (rand.nextFloat() - rand.nextFloat()) * 0.1F; // Botania - Make and use a secondary movement variable below + float secondary = (rand.nextFloat() - rand.nextFloat()) * 0.1F; // Botania - Make and use secondary movement variables below + float secondary2 = (rand.nextFloat() - rand.nextFloat()) * 0.1F; if (enumfacing.getAxis() == EnumFacing.Axis.X) { motionX = f1 * f; - motionY = motionZ = secondary; + motionY = secondary; + motionZ = secondary2; } else if (enumfacing.getAxis() == EnumFacing.Axis.Y) { motionY = f1 * f; - motionX = motionZ = secondary; + motionX = secondary; + motionZ = secondary2; } else if (enumfacing.getAxis() == EnumFacing.Axis.Z) { motionZ = f1 * f; - motionX = motionY = secondary; + motionX = secondary; + motionY = secondary2; } return true;