Closed AAigars closed 3 years ago
Huzzah! I didn't realize ruined towns intentionally had no mayor, good catch! I think the PR is a good enough solution for right now. Maybe in the near future, I'll add ruin checks to the replacements themselves and also a config option to render ruined towns.
Thank you for your contribution! Before I can merge it though, I just need any confirmation that you're fine with releasing the code you're contributing under the MIT license (I'll make a PR template in the future that has this confirmation in it).
No problem :) I am fine for the code to be released under the MIT license.
Ruined towns would cause an NPE on the
registerReplacements
method due to the town not having a mayor, this PR fixes the issue by just ignoring any towns which are ruined.Stacktrace of the error: