From d1edfb92138179cc69b19dacfdb3f7aed80cbbad Mon Sep 17 00:00:00 2001 From: techno-sam <77073745+techno-sam@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:04:13 +0200 Subject: [PATCH] add cancelTransaction method to salepoint CC API --- .../implementation/peripherals/SalepointPeripheral.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/src/main/java/dev/ithundxr/createnumismatics/compat/computercraft/implementation/peripherals/SalepointPeripheral.java b/common/src/main/java/dev/ithundxr/createnumismatics/compat/computercraft/implementation/peripherals/SalepointPeripheral.java index 1d6d185..17bf977 100644 --- a/common/src/main/java/dev/ithundxr/createnumismatics/compat/computercraft/implementation/peripherals/SalepointPeripheral.java +++ b/common/src/main/java/dev/ithundxr/createnumismatics/compat/computercraft/implementation/peripherals/SalepointPeripheral.java @@ -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";