changed the min and max values for the block-search in getPortalsNearLocation

- note: this function needs to be improved with a new search method
because the current one is inefficient
the function safeTeleport was rebuilt

now works with a given orientation to achieve better teleportation
results
( will may be removed in the future because i don't think that this is
the best way to solve the teleportation-issues )