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

Work on NetherPortalScanner. Setup portal scanner to reset PortalCool… #2241

Merged
merged 1 commit into from Jun 26, 2015

Conversation

lkolbly
Copy link
Contributor

@lkolbly lkolbly commented Jun 13, 2015

…down. Changed where player is spawned. Added a_InitSpawn flag to CreateAndInitializeWorld.

The CreateAndInitializeWorld flag was created because as far as I know, the Nether does not require a spawn area (correct me if I'm wrong, this seems like a big but valid assumption to me). DetectPortal sends a player respawn packet, but this packet is not actually sent until DetectPortal returns, which is after CreateAndInitializeWorld is called. Creating a spawn area is time-consuming, so sometimes the packet can be delayed for a while (many seconds).

This PR also contains minor stylistic changes to some comments I found. Also ScheduleMoveToWorld can set the PortalCooldown. Also actually checks the MaxY limit.

…down. Changed where player is spawned. Added a_InitSpawn flag to CreateAndInitializeWorld.
@lkolbly
Copy link
Contributor Author

lkolbly commented Jun 26, 2015

Could I get a yay/nay on this please?

worktycho added a commit that referenced this pull request Jun 26, 2015
Work on NetherPortalScanner. Setup portal scanner to reset PortalCool…
@worktycho worktycho merged commit 0a7c542 into cuberite:master Jun 26, 2015
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