Teleported on top of a mountain (bug)

Hi!

I was going out of my house to gather resources, but when I was closing my front door I accidently got inbetween the doorway and the metal door which suddenly teleported me on top of a mountain.

Luckily, I had enough planks on me to make a nice little house.

Anyone else had this kind of problem? I made a very short film of where I am:

Good evening folks!

lol thats kinda funny xD