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

Fix random target selector - Fixes #574 #575

Merged
merged 1 commit into from
Oct 19, 2017

Conversation

kaenganxt
Copy link
Member

This PR fixes the IndexOutOfBoundsException when using the @r selector on a single player as stated in #574.

The commit also reuses the random object for performance reasons.

@aramperes aramperes merged commit 62f43a2 into GlowstoneMC:master Oct 19, 2017
@aramperes
Copy link
Member

Thank you for your contribution!

@kaenganxt kaenganxt deleted the randomTargetSelector branch December 10, 2017 14:04
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.

2 participants