Koulis2000 / MCScripts

1 stars 0 forks source link

Unhandled error condition in craft cycle #13

Closed Bjonnfesk closed 11 months ago

Bjonnfesk commented 11 months ago

cf. https://github.com/Koulis2000/MCScripts/issues/10

Due to the no match condition being unhandled, craftCycle() must return. This means that items that are after the item for which there was no match, will not be processed.

https://github.com/Koulis2000/MCScripts/blob/922ebb0bc358e513cec3a0154ca0b357a3f3a8a8/CCTweaked/janus-dossier.lua#L219-L229

Koulis2000 commented 11 months ago

Oversight of mine, I will investigate for other cases of returns with not releaseFileLock()

Bjonnfesk commented 11 months ago

Sure, but I fixed that already, that was issue #10. This issue is about the loop being forced to abort if it hits an item that doesn't match, so subsequent items in the list don't even get checked.

Koulis2000 commented 11 months ago

If you fixed it, why is 13 open? Github is confusing.

Bjonnfesk commented 11 months ago

I fixed #10, which was a related issue. I haven't fixed this one.

Koulis2000 commented 11 months ago

Oh, different issue, I see. Okay got it.

Koulis2000 commented 11 months ago

This will now be handled by the add command. It will fill the information temporarily while waiting for the next cycle of updateRequiredItems()

https://github.com/Koulis2000/MCScripts/blob/c830e9cf6bc1b3504c4312dab0953c498881e71a/CCTweaked/janus/commands.lua#L141-L151