From 8c8d3430b08eaf14236a187888ce4a466df105e1 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Sat, 5 Dec 2020 16:48:43 +1300 Subject: [PATCH] Bugfix --- core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.lua b/core.lua index 03c284c..31a529b 100644 --- a/core.lua +++ b/core.lua @@ -223,7 +223,7 @@ function lurkcoin.pay(source, target, target_server, amount, callback) return callback(true, 'Transaction sent!') end lurkcoin.bank.add(source, amount, 'Reverting failed transaction.') - if res.code == 'ERR_CANNOTAFFORD' then + if res.error == 'ERR_CANNOTAFFORD' then res.message = 'This server cannot afford to do that!' end return callback(false, 'ERROR: ' .. tostring(res.message))