Why does this make an infinite loop

Hello I am trying to make a minecraft like chunk rendering system but for some reason it creates an infinite loop how do I make the loop well finite?