Fixed enemy teleporting when terrain change