Resolve "Add a way to only run mods on certain threads"
Closes #474 (closed).
Sets isMapThread on the mod object and runs the init, map init, and main init functions if they exist and are currently on the correct thread.
Closes #474 (closed).
Sets isMapThread on the mod object and runs the init, map init, and main init functions if they exist and are currently on the correct thread.