Hey,
I couln't reply because of exams, I fixed the bug, I just have tested my generation with some parameters that doesn't do that bug. The bug is fixed for me (it was just an / to replace by a * lol)
I couldn't finish the "game" so like I just did a moving system and started a cave generator (not finished with buggy collisions)