[1.18.2][Portal Issue] Underground portals cannot correctly link and randomly redirect to wrong positions
SodiumZH opened this issue ยท 4 comments
Forge Version
40.1.68
Twilight Forest Version
4.1.1184
Client Log
No response
Crash Report (if applicable)
No response
Steps to Reproduce
Two manually-created portals with identical XYZ location cannot link correctly.
I tried to link two portals from overworld to TF. The overworld one was underground in an ocean biome. The TF one was in the labyrinth. The two portals' XYZ position was exactly identical and both was manually created.
This led to unstable locating when I tried going through the portals.
To reproduce:
- Find a labyrinth and create a portal inside. Set down its XYZ position. (In my case Y=-14.)
- Find the position of the portal above in the overworld (usually underground), and create a portal at the identical position.
- Go through the above 2 portals.
What You Expected
The two portals should be linked. When I get into one, I should be sent to the other one, just like the Nether portals do.
What Happened Instead
Several random issues have ever happened:
- Portal in the Twilight Forest ("TF portal" below) created a new portal on the surface of the ocean.
- Portal in the overworld ("overworld portal" below) created a new portal outside the labyrinth in the twilight swamp.
- When I manually broke the generated portals, they may still send me to the broken portal without generating a new one.
- The TF portal sent me to the sea level above the position of the overworld portal, without any new blocks generated.
- Rarely the overworld portal sent me directly above the TF portal, and I was sent back immediately to the overworld that the TF wasn't shown at all. (This case happened only once for me, so I'm not sure if it can be reproduced.)
- Several tests through the same portal could lead to different positions, sometimes correctly to the other one, and sometimes with the above issues happening.
- Different portal blocks in a single portal could lead to different results.
- After breaking one of the portals and then remaking it, the results may change.
- Block changes near the portal may change the results.
Additional Details
Please Read and Confirm The Following
- I have confirmed this bug can be replicated without the use of Optifine.
- I have confirmed the details provided in this report are concise as possible and does not contained vague information (ie. Versions are properly recorded, answers to questions are clear).
- I have confirmed this issue is unique and has not been reported already.
An additional case:
After filling the target positions with solid blocks, the portal may still teleport me to the former position into solid blocks.
After some additional tests, I found that a portal on the ground may also lead to issues above, but the probability is much lower.
A save data with the issue 7 is available. If anyone needs the sample, please contact me to take it. (Difficult to upload as it's 3GB large)
linking this back to #1459 just to keep the issue tracker clean. We're very aware of all of the portal issues, and I hope we can completely rewrite the logic someday.