I created a server with a few mods on it, nothing that should change the way vanilla mobs spawn, and at first everything worked perfectly fine. As we started exploring the world more, hostile monsters just stopped spawning in the overworld. Animals and a few modded mobs spawn, but regular hostile monsters just wont. They also spawn normally in the nether, so it's just something wrong with the overworld.
The version is 1.12.2.