Recently there was a update that disabled mob spawns in towns due to TPS loss during fights. This is a good change to make fights more smooth, however I believe this could be done a different way. I propose that all mob spawning is turned off 15 minutes before a fight begins sort of like how hoppers are turned off.