Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServerWorld#spawnParticles suggests that setting count to 0 does something it doesn't #4087

Open
Burrnr opened this issue Jan 13, 2025 · 0 comments

Comments

@Burrnr
Copy link

Burrnr commented Jan 13, 2025

The ServerWorld#spawnParticles method's docstring claims that

If count is 0, a single particle will be spawned with its velocity being deltaX, deltaY, deltaZ multiplied by speed.

In reality, setting count to zero spawns a single particle unaffected by having its position being randomized by deltaX, deltaY, deltaZ multiplied by speed.

This also makes the parameter speed's name misleading, when a name like offset would be more representative of the actual use.

Yarn Version: 1.21.1+build.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant