OpenComputers

OpenComputers

46M Downloads

[1.12.2] AE2: `request().isCanceled()` is returned `false` when the request failed

yuton502 opened this issue ยท 2 comments

commented

ME Controller connected to the adapter makes a request for autocraft using component.
If there are not enough resources, the request itself will fail, but me_controller.getCraftables().request().isCanceled() will return false.

request().isCanceled() should return true when the request failed.

image
Above, the request failed.
Below, the request succeeded.

  • Minecraft 1.12.2
  • OpenComputers 1.12.2-1.8.6
  • Gregtech Expert 2 v2.7.7 Modpack
commented

Note from me, you can get the message with local _, msg = v.craft.isCanceled() and then check whether it is nil or not to get if a craft failed. I just assumed the craft failed if its not nil, idk if there are error messages but it still succeeded

commented

Thank you for looking for a solution. I confirmed to work correctly it.
It is just a workaround for the issue, so I'm going to leave this open.