Fixes #5255 and walking over edges

Before walking over an asteroid edge would have put the mob under the
sprite, as if the mob crawled under it.