Improved update_chunk_coordinate

Removed 13 conditional checks and several unneeded variables.