-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
This commit introduced a new bug that when an EntityPortalEvent is cancelled. The canCreatePortal on the TravelAgent is still set to false and never reset to its old value. So if a Player enters a portal afterwards, it will not generate a portal and put them in deathly situations (inside a wall or up in the air).
recommended fix would be to put
`agent.setCanCreatePortal(oldCanCreate);`
just before returning null when the event is cancelled. The TravelAgent being shared per-world is the root cause of the issue and why it persists.