
GildedChunkSpamFix
Fixes gilded drones/monsters spawning game-crashing amounts of gilded chunks. Server-side and vanilla compatible.
Date uploaded | 3 weeks ago |
Version | 1.0.1 |
Download link | LordVGames-GildedChunkSpamFix-1.0.1.zip |
Downloads | 3446 |
Dependency string | LordVGames-GildedChunkSpamFix-1.0.1 |
This mod requires the following mods to function

bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.2117

README
GildedChunkSpamFix
As the description says, this fixes gilded drones, friendly monsters, or any AI that is a gilded elite spawning so many gold chunks the game lags out and practically crashes.
It does this by making both players AND drones/monsters/any AI use a cooldown for how often gold chunks can spawn. Only players have this normally, which leads to AI not having a cooldown and crashing games with gold.
Before
After
CHANGELOG
1.0.1
When the AI attacks players, the AI are now also are affected by the gilded chunk spawning cooldown, so now any and all gilded players/ai use the chunk spawning cooldowns
- Done via an improved IL hook: it no longer removes any IL and instead makes the IL always jump over the "isPlayer" check for chunk spawning cooldowns
I also linked the github page to the thunderstore page because I forgot to on release
1.0.0
- First release