Fix Legacy Portal Detection#584
Conversation
fecc0fb to
56355e1
Compare
|
The above mentioned issue is fixed, but that exposed another bug which is fixed by #600. So, this is on hold until that fix is merged. |
56355e1 to
ebf3f48
Compare
|
Here's a test build of this PR. |
|
Actually, what is a "legacy" portal? Like portals made on an older version of Minecraft? |
|
Dumptruckman and I talked about this. "Legacy" is a bad term, and we're gonna rename it in 5.0.0. "Legacy" is any portal that isn't filled with the nether portal block. So, for example, a portal that is made of water is considered "Legacy". |
ebf3f48 to
5db19c1
Compare
|
I tested a bit and this is definitely more robust in terms of detecting nether_portal type. However, there is one change, portals with I suggest having a boolean config option Now onto the bug relating to |
|
About the animation, that's the vanilla behaviour (animation in survival, instant in creative). I don't think I've heard of anyone who wanted to change it, but I suppose an option wouldn't hurt. |
|
Yea, but I think it's good to have an option to not have it even in survival mode - since that was the behaviour before this PR |
|
I suppose so, yeah. |
|
I'll work on the config option later today, unless you want to (I might be a bit slow). |
|
Very busy with school, will review it when you add it 😄 |
|
I completely forgot this was MV Portals (I was thinking MV NetherPortals the whole time 🤦♂️). Now I understand why the config option would be nice lol. |
|
HAHA yea I mix them up at times too |
benwoo1110
left a comment
There was a problem hiding this comment.
Looks good, config option will be done in a separate pr.
Is this still planed? I actually have some players being confused about portals no longer teleporting directly if it is using nether portal blocks. 👀 |
|
Yes, it's still planned. Albeit I did forget about it. Thanks for the reminder. |
This PR fixes legacy portal detection. Although, it seems it wasn't used anywhere, it's important that it works properly for anyone who wants to use the API. I also made it so that the Player Move event handler only handles legacy portals, but this exposed a bug. It seems the player portal event handler doesn't work properly for normal portals. I tested this on 1.16.3.