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

Fix Nether and End portals for non-player entities #11

Open
wants to merge 1 commit into
base: ver/1.20.4
Choose a base branch
from

Conversation

alexthvest
Copy link

I tried to fix problems with non-player entities and portals cause some will need this functionallity on their server (like we're).

The main problem I found that teleportation ticked on ServerLevel tick thread but entities neeed to check Poi in another world. I use taskScheduler to schedule changeDimension on main thread.

Moved changeDimension from ServerLevel tick thread to main tick thread.
@MrPowerGamerBR
Copy link
Member

MrPowerGamerBR commented Feb 26, 2024

Instead of creating a new patch, it would be better to amend the 0018-Parallel-world-ticking.patch patch.

It would also be nice to see how Folia handles entity teleport between worlds, iirc Folia completly changes how portal teleports work but yeah, another fix is to just schedule entity moves to be handled after the worlds are ticked.

@Potothingi
Copy link

Hello. When will this be resolved?

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

3 participants