Crsfml sprite texture not updating on it's own

Here’s the github repository: GitHub - MagicSparklyGoldfish/crystal_m
it’s a bit of a mess right now, I’m planning on cleaning it up soon. I think I used a fiber because the first iteration of the script ate all my memory, forcing me to shut down my computer. I’ve worked on it a lot since then so that may no longer be the case, though. I’ve spent the past few days trying stuff to make it work :sweat_smile: