Skip to content

Commit

Permalink
add cancelTransaction method to salepoint CC API
Browse files Browse the repository at this point in the history
  • Loading branch information
techno-sam committed Aug 7, 2024
1 parent 5cf05fc commit d1edfb9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ public final void startTransaction(String accountID, String authorizationID, int
throw new LuaException("Failed to start transaction");
}

@LuaFunction(mainThread = true)
public final void cancelTransaction() {
blockEntity.cancelTransaction();
}

@Override
public String getType() {
return "Numismatics_Salepoint";
Expand Down

0 comments on commit d1edfb9

Please sign in to comment.