Skip to content

fix: Issues related to fireworks and fused explosives#4117

Merged
aromaa merged 12 commits intoSpongePowered:api-11from
pandier:fix/fused-explosives
Aug 25, 2024
Merged

fix: Issues related to fireworks and fused explosives#4117
aromaa merged 12 commits intoSpongePowered:api-11from
pandier:fix/fused-explosives

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
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