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

feat: LivingEntity fire overhaul #2122

Merged
merged 2 commits into from
May 27, 2024
Merged

Conversation

DeidaraMC
Copy link
Collaborator

  • Fire duration uses ticks
  • Setting fire through the entity meta will not expire it immediately
  • Renamed EntityFireEvent > EntitySetFireEvent
  • Added an EntityFireExtinguishEvent for when fire is extinguished
  • Removed fire damage period, it was was not being used anyway
  • Fire related unit tests

@mworzala
Copy link
Member

mworzala commented May 3, 2024

it feels like we should not lose the behavior of an event while the player is on fire. That seems like the most common case (like ticking health down)

@mworzala mworzala changed the base branch from master to 1_20_5 May 27, 2024 15:58
@mworzala mworzala merged commit a8354fb into Minestom:1_20_5 May 27, 2024
mworzala pushed a commit that referenced this pull request May 27, 2024
* feat: LivingEntity fire overhaul

* chore: missed method change
mworzala pushed a commit that referenced this pull request Jun 2, 2024
* feat: LivingEntity fire overhaul

* chore: missed method change
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

2 participants