Maybe fix power hungry finished quarries.

I don't even know anymore, this code a plate of spaghetti that when I pull a string it turns out someone cut it into 1000 little pieces. Please don't accept this until I can test it when operating on more than 7 hours of sleep.