core: fix cross-dimensional teleporting