this is originally what I thought #1333 was, but wasn't, but this is still valid fix
When a mob was about to load a chunk to try to spawn in, we did not increment the attempt counter, resulting in it being stuck in the mob spawn loop for a long time and hanging servers.