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: Issues related to fireworks and fused explosives #4117

Merged
merged 12 commits into from
Aug 25, 2024

Conversation

pandier
Copy link
Contributor

@pandier pandier commented Aug 3, 2024

Fixes #4116

  • synchronizes firework entity data changes with client
  • implements IS_PRIMED for all fused explosives
  • fixes TICKS_REMAINING throwing an error for anything other than PrimedTNT
  • fixes FUSE_DURATION always rejecting
  • detonate method of Creeper only igniting, not exploding it (other methods explode)
  • allows to modify flight duration of a firework item with FIREWORK_FLIGHT_MODIFIER (not sure if this is wanted)

@pandier pandier marked this pull request as draft August 3, 2024 11:04
@pandier pandier marked this pull request as ready for review August 4, 2024 09:47
Copy link
Member

@aromaa aromaa left a comment

Choose a reason for hiding this comment

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

Overall looks good, few comments.

Copy link
Member

@aromaa aromaa left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!!

Another thing I noticed was that the FIREWORK_FLIGHT_MODIFIER is Ticks but we more of treat it as int which seems problematic.. There is also no direct way to change the lifetime as actual Ticks which would be helpful, but all of those are unrelated here.

@aromaa aromaa merged commit ffb8262 into SpongePowered:api-11 Aug 25, 2024
5 checks passed
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.

Firework effects of a firework rocket are not synchronized with client
2 participants