Hey sorry for the late late late reply , was playing around yet no help. I feel that this is the chunk of code causing the reset , may I ask if I'm right if so , how can I modify it such that the player doesn't reset the map.
/* 1397 */ if (!wheel) {
/* 1398 */...