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

Fixed entity spawn position #6643

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from

Conversation

leolee3914
Copy link
Contributor

$this->getOffsetPosition($this->location),

Related issues & PRs

Changes

API changes

Behavioural changes

Backwards compatibility

Follow-up

Tests

@leolee3914 leolee3914 requested a review from a team as a code owner February 28, 2025 08:59
@leolee3914
Copy link
Contributor Author

PrimedTNT spawns without offset position

2025-02-28_20-03-43_Fri-wth-no-offset.mp4

PrimedTNT spawns with offset position

2025-02-28_20-00-30_Fri-with-offset.mp4

seems the position should only be fixed on AddActorPacket
Human->sendSpawnPacket() for players using AddPlayerPacket has no offset issue
i am not sure for ItemEntity because the offset is small

@dktapps
Copy link
Member

dktapps commented Feb 28, 2025

This should be tested with entities such as zombies and villagers

@leolee3914
Copy link
Contributor Author

zombie and villager have zero offset position. nothing can be tested

@dktapps
Copy link
Member

dktapps commented Feb 28, 2025

Strange this hasn't been picked up on before. Do you know if it changed in a recent version?

@leolee3914
Copy link
Contributor Author

i think this issue has existed for many years
nobody noticed it because Entity->broadcastMovement() will correct the position shortly

@dktapps
Copy link
Member

dktapps commented Feb 28, 2025

I doubt that. The TNT position error is pretty obvious, someone would've noticed.

@dktapps dktapps added Type: Fix Bug fix, typo fix, or any other fix Category: Protocol Related to (changes in) the Minecraft network protocol labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Protocol Related to (changes in) the Minecraft network protocol Type: Fix Bug fix, typo fix, or any other fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants