It’s great that the game is so incredibly buggy that they have to add sanity checks to their buggy code to try and avoid doing dumb things, but even their sanity checks are hopelessly buggy and just make things worse.