Closed blackphreak closed 5 years ago
You should start a new job for the whole piece of the code. That way everything will be asynced if not you will only async the block placing not the schematic load.
Can you give me some example pls? ._. I don't get it at all...
What you need to do:
Here is my newest code: https://pastebin.com/Fv8JyeKY
but I can't get the job progress. the job done event will called before it really finished the job.
outputs: [00:24:10 INFO]: [jobAdded()-L169] job added initializing | name: ABC [00:24:10 INFO]: [jobAdded()-L169] job added initializing | name: ABC [00:24:10 INFO]: Running ABC in full async mode. [00:24:10 INFO]: Running DungeonCreation in full async mode. [00:24:10 INFO]: Job [0] ABC - placing blocks [00:24:10 INFO]: Job [0] DungeonCreation - placing blocks [00:24:12 INFO]: Clipboard operation done. [00:24:12 INFO]: Blocks processed: 246975 [00:24:12 INFO]: Job [0] DungeonCreation - done [00:24:12 INFO]: Job [0] ABC - done
cuz I don't know what should I put inside the iCancelableEditSession to perform async task. If I put nothing inside, it won't work.
my code: https://pastebin.com/1Z9muTjG
pls help... I don't know how to fix this :(
[I tried to google for few hours but still have no idea how to fix]
Server Console Log: [16:28:55 INFO]: Running DungeonCreation in full async mode. [16:29:26 INFO]: Clipboard operation done. [16:29:26 INFO]: BlackPhreak lost connection: Disconnected <-- caused by connection timeout [16:29:26 INFO]: Job [0] DungeonCreation - placing blocks [16:29:26 INFO]: Job [0] DungeonCreation - done