NuclearPowered / Reactor

Modding api for Among Us
https://reactor.gg
GNU Lesser General Public License v3.0
225 stars 43 forks source link

Improve regionInfo.json writing logic #55

Closed miniduikboot closed 2 years ago

miniduikboot commented 2 years ago

Since a few version AU writes the regionInfo.json file after loading it. This triggers the write observer, causing a positive feedback loop. 70155fe8a6fdf443a6699f4fc25e6642b249d933 took the first stab at stopping this positive feedback, but unfortunately it isn't adequate enough when 4+ clients are running at the same time, so this commit takes it a step further by not writing the data if it didn't change, stopping the loop.