Bukkit/CraftBukkit — pull request #831 by Anxuiz (2012-08-03 02:59:19+00:00)
Title: Use the correct dimension when importing a world. BUKKIT-1975

When "creating" (importing) a world from a Bukkit plugin using Server.createWorld(), the dimension is incorrectly loaded. CraftBukkit tries to pass the "unique dimension" generated for each new world instead of the physical dimension (nether, normal, end) causing incorrect dimensions at best and NPEs at worst.

This simple fix uses the dimension specified by the plugin in the WorldEnvironment object instead of the generated dimension ID, fixing this issue.

Fixes [BUKKIT-1975](https://bukkit.atlassian.net/browse/BUKKIT-1975).