The majority of the logic in /showgen generate is in an asynchronous method call, instead of just posting the gist to GitHub. When a selection contains chunks that aren't loaded in, Bukkit will try to load them in, and since it's in an async call, an error will be thrown.
Instead, all of the logic that generates the list of actions should be done synchronously, and only the gist posting should be in an asynchronous call.
The majority of the logic in
/showgen generateis in an asynchronous method call, instead of just posting the gist to GitHub. When a selection contains chunks that aren't loaded in, Bukkit will try to load them in, and since it's in an async call, an error will be thrown.Instead, all of the logic that generates the list of actions should be done synchronously, and only the gist posting should be in an asynchronous call.