mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-23 12:30:56 -04:00
Merge pull request #132 from Vlamonster/patch-1
Return reason for failed request
This commit is contained in:
commit
ec38f4ec2e
@ -397,7 +397,7 @@ object NetworkControl {
|
||||
def isComputing(context: Context, args: Arguments): Array[AnyRef] = result(isComputing)
|
||||
|
||||
@Callback(doc = "function():boolean -- Get whether the crafting request has failed.")
|
||||
def hasFailed(context: Context, args: Arguments): Array[AnyRef] = result(failed)
|
||||
def hasFailed(context: Context, args: Arguments): Array[AnyRef] = result(failed, reason)
|
||||
|
||||
@Callback(doc = "function():boolean -- Get whether the crafting request has been canceled.")
|
||||
def isCanceled(context: Context, args: Arguments): Array[AnyRef] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user