Skip to content

server: fix Java explosion knockback - #1348

Open
HashimTheArab wants to merge 2 commits into
df-mc:masterfrom
HashimTheArab:agent/fix-explosion-knockback
Open

server: fix Java explosion knockback#1348
HashimTheArab wants to merge 2 commits into
df-mc:masterfrom
HashimTheArab:agent/fix-explosion-knockback

Conversation

@HashimTheArab

Copy link
Copy Markdown
Collaborator

Summary

  • affect entities whose feet coincide with the explosion origin
  • calculate explosion impulse from the entity eye position and add it to existing velocity
  • safely handle zero-length directions for non-eyed entities
  • apply Java-style Blast Protection resistance and preserve consecutive same-tick impulses

Verification

  • go test ./...
  • make lint
  • codex review --uncommitted

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.

2 participants