In components/follower.lua's OnEntitySleep function, if allow_ocean is true and FindSwimmableOffset succeeds, leader_pos will be modified by the offset. If IsOceanAtPoint fails (assuming this can happen) and allow_land is true, then FindWalkableOffset will use the modified leader_pos (a swimmable position) instead of the leader's actual position.
Not sure if this translates to an actual problem, but I thought I'd point it out.
Steps to Reproduce
Presumably a follower that can walk and swim could teleport to the player at a closer or farther distance than intended.
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now