Fix Nether Portal and End Platform creation.

Based on commits made by reo7sp.

But reworked his "Fix ender portal creation" (6bcb1b5e33d80b5162e2f5c160b6f84a32dd292f)