Fix mobs not passing through portals correctly.

This fixes so that mobs going through a portal doesnt end up in stock "End" or "Nether".
But instead its assigned world.

Plus some code cleanup.