[1.12.2] AE2: `request().isCanceled()` is returned `false` when the request failed
yuton502 opened this issue ยท 2 comments
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.
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
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