Jump to content

[1.7.10] Restrictions teleporting a player out of the End?


American2050

Recommended Posts

Are there any restrictions when teleporting a player out of the End and back to the Overworld?

 

Whenever I try that, the player gets teleported to the Overworld, but the world itself wont render.

 

I guess this is related with the "Credits" that are suppose to run when someone leaves the end maybe? Because I have not problem with player comings from the Nether for example.

Link to comment
Share on other sites

No, that isn't it.

 

I'm guessing if you log the client out and back in, the world is rendered.

 

 

In your teleport code, before you send the player back to the overworld, get a block from where the player will teleport to.  It seems to send a packet or something that makes everything update.

 

I saw someone mention this and I played around with it.  On most teleports you are using a portal block, ect.  that involves searching for blocks ect.  That doesn't happen when you just straight up teleport without a portal.  Using the one getblock call seems to solve the issue.  Since I added it to my teleports, I have had zero of the non world loading issues.

Long time Bukkit & Forge Programmer

Happy to try and help

Link to comment
Share on other sites

Thanks Delpi I will take a look around doing something of what you mention.

 

The truth is that I'm working over the code that someone else did, so figuring this things out aren't easy for me :D

 

And yes, when I log out and log in the world renders again with no problem.

 

Thanks again for the answer, if I find a fix I will post again to let you know how it did ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.