Hotfix some exceptions

This commit is contained in:
2025-03-03 10:01:56 +01:00
parent 5f73395b63
commit caee70c07e
3 changed files with 23 additions and 23 deletions
@@ -25,7 +25,7 @@ public interface ParticleElement {
}
default Particle.DustOptions withColor(int r, int g, int b) {
return new Particle.DustOptions(Color.fromRGB(r, g, b), RANDOM.nextFloat() / 2);
return new Particle.DustOptions(Color.fromRGB(r, g, b), (float) (RANDOM.nextFloat() / 2 + 0.5));
}
default void display(Location location, Player root, boolean onlySelf, boolean onlyOther, Consumer<Player> consumer) {