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 ProjectileLaunchEvent #933

Merged
merged 1 commit into from
Jun 2, 2018
Merged

Implement ProjectileLaunchEvent #933

merged 1 commit into from
Jun 2, 2018

Conversation

Mystiflow
Copy link
Contributor

@Mystiflow Mystiflow commented Jun 1, 2018

This PR implements the ProjectileLaunchEvent.

ProjectileLaunchEvent launchEvent = EventFactory.getInstance()
.callEvent(new ProjectileLaunchEvent(projectile));
if (launchEvent.isCancelled()) {
projectile.remove();;
Copy link
Contributor

Choose a reason for hiding this comment

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

Spotted that double semicolon ;)

@Mystiflow Mystiflow closed this Jun 1, 2018
@Mystiflow
Copy link
Contributor Author

Mystiflow commented Jun 1, 2018

I've rolled back the changes I originally intended to make only implementing the bare necessity for #922 .

My original thought process was to make it so the entity didn't have to be added for the world (sending spawn entity packets to all players) only for it to be removed a tick later (sending destroy entity packets to all players), but this requires a bigger rewrite of some of the spawning code than I thought and therefore I think it is best suited for another PR.

This is ready now though.

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

4 participants