Fixed an issue where the x/y coordinates would be incorrect for worlds
where the axis is flipped.