Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Redo particle effects API and add new effects #89

Closed
wants to merge 1 commit into from
Closed

Redo particle effects API and add new effects #89

wants to merge 1 commit into from

Conversation

socram8888
Copy link
Contributor

I've redone the particle effects API.

Patches originally used to add the particle stuff have been repurposed to add some missing effects. I've intentionally done this so early in the patch process because I've submitted a PR to Bukkit with the same diff (see Bukkit/Bukkit#1074), so if it gets pulled this century updating would be a matter of removing them both.

Patches whose purpose is to add the actual particle stuff have been added last. I've attempted to keep the diffs at a minimum, so they may look ugly or something, but work well otherwise and with very little overhead.

On the plus side this fixes #88

@Yukon
Copy link
Member

Yukon commented Jun 13, 2014

The renamed effects are going to cause issues with plugins not compiled with this patch and vise versa.

@socram8888
Copy link
Contributor Author

I could add some @Deprecated for that, but otherwise most whose name is different matches more closely the official Bukkit naming.

I want to get this if possible pulled on official Bukkit, so I thought it would make more sense to use the proper names, so if it gets pulled it would not break, even though it breaks now.

@tonybruess
Copy link
Member

I'm fine breaking plugins/names

@tonybruess
Copy link
Member

@socram8888 care to rebase on master?

@socram8888
Copy link
Contributor Author

Done

@tonybruess
Copy link
Member

I re-reviewed this PR and it looks good code wise. Have you done any testing? Even if you have I probably will before we merge this.

@socram8888
Copy link
Contributor Author

All I tested is that vanilla Bukkit effects (SOUND and VISUAL) work properly (while in the original code they don't). I haven't tested the particle things since I have no plugin which employs them.

Maybe it's desirable to merge only the first two patches (the ones that add the new effects and fixes the original ones from Bukkit), and after that, pull the particle patch.

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

Successfully merging this pull request may close these issues.

playEffect is broken
3 participants