
[GameBreaking BugReport] Dungeon spawner is fundationally broken. [Pregenerator]
Speiger opened this issue ยท 1 comments
Hello,
So I got a bug report with ChunkPregenerator that my mod seems to cause your mod to spawn dungeons only in spawn chunks...
I looked at your code and found this:
To explain what this is:
After the mod has decided by a "Global counter" in a deterministic world generator (effectively random) that it should generate a dungeon.
Instead of Generating this Dungeon in the chunk that was decided on, you instead try to pick the closest player or spawn if none found and shift that 128 blocks towards the generated chunk (from decided player/spawn location) and spawn the dungeon there...
After reading the config and seeing that dungeons only need to be 17-18 blocks away from each other +- structure bounds i found out that this can be exploited since there is a "global" chunk counter. So if you are a bit crazy you the player could decide where exactly these dungeons spawn...
For anyone who wonders. Any pregenerator will cause this issue because either the player is present or not and will forcefully drag all dungeons to themselves or spawn will attract them... But this is not the Pregenerators fault. Its Dungeons 2 fault.