Skip to content

fix MC-298066 #454

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

Merged
merged 2 commits into from
Jul 24, 2025
Merged

fix MC-298066 #454

merged 2 commits into from
Jul 24, 2025

Conversation

MicrocontrollersDev
Copy link
Contributor

https://bugs.mojang.com/browse/MC/issues/MC-298066

unable to figure out why its not actually teleporting the player properly, but i dont see any reason why this should cause issues

super(entityType, level);
}

// This is just a hacky fix to force the player into the correct position
Copy link
Owner

Choose a reason for hiding this comment

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

It's because teleportTo calls teleportPassengers.

private void teleportPassengers() {
	this.getSelfAndPassengers().forEach(entity -> {
		for (Entity entity2 : entity.passengers) {
			entity.positionRider(entity2, Entity::snapTo);
		}
	});
}

@isXander isXander merged commit 69ff3b4 into isXander:1.21.7 Jul 24, 2025
1 check passed
@MicrocontrollersDev MicrocontrollersDev deleted the mc-298066 branch July 24, 2025 17:47
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