Fixed past at cursor bug

Didn't test rotated entities and the previous method didn't work.