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

Implement SlimeSplitEvent #937

Merged
merged 5 commits into from
Jun 5, 2018
Merged

Implement SlimeSplitEvent #937

merged 5 commits into from
Jun 5, 2018

Conversation

Mystiflow
Copy link
Contributor

@Mystiflow Mystiflow commented Jun 1, 2018

Part contribution of #922


for (int i = 0; i < count; ++i) {
Location spawnLoc = getLocation().clone();
spawnLoc.add(Math.random(), 0, Math.random()); //TODO: Not sure it's vanilla
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use ThreadLocalRandom.current().nextDouble() here instead of Math.random()?

@Mystiflow
Copy link
Contributor Author

Okay, this PR is now ready.

@mastercoms mastercoms merged commit 8316707 into GlowstoneMC:dev Jun 5, 2018
@Mystiflow Mystiflow deleted the slimesplitevent branch June 5, 2018 18:47
@aramperes aramperes mentioned this pull request Jun 6, 2018
97 tasks
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

Successfully merging this pull request may close these issues.

None yet

3 participants