From a5314b50056f50f12f333cb586373a8fe69228db Mon Sep 17 00:00:00 2001 From: luk3yx Date: Thu, 19 Sep 2019 17:55:01 +1200 Subject: [PATCH] Change code style --- bank.lua | 12 ++++++------ minibank.lua | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bank.lua b/bank.lua index f86e607..587f823 100644 --- a/bank.lua +++ b/bank.lua @@ -181,7 +181,7 @@ if minetest.get_modpath('atm') and rawget(_G, 'atm') and atm.balance then end }) elseif minetest.get_modpath('bank_accounts') and rawget(_G, 'accounts') and - accounts.balance and accounts.pin and accounts.credit then + accounts.balance and accounts.pin and accounts.credit then -- https://github.com/Tmanyo/bank_accounts lurkcoin.change_bank({ @@ -194,7 +194,7 @@ elseif minetest.get_modpath('bank_accounts') and rawget(_G, 'accounts') and end }) elseif minetest.get_modpath('economy') and rawget(_G, 'economy') and - economy.balance and economy.accountlog then + economy.balance and economy.accountlog then -- https://github.com/orwell96/economy -- economy.moneyof() automatically adds non-existent entries, therefore it -- is not used by default. @@ -239,17 +239,17 @@ elseif rawget(_G, 'money') then elseif minetest.get_modpath('money2') and money.get then -- money.add and money.dec have a different return value system. lurkcoin.change_bank({ - mod = 'money2', + mod = 'money2', user_exists = money.has_credit, - getbal = money.get, - setbal = function(name, ...) + getbal = money.get, + setbal = function(name, ...) if money.has_credit(name) then money.set(name, ...) return true end return false end, - pay = function(from, to, amount) + pay = function(from, to, amount) local err = money.transfer(from, to, amount) return not err, err end diff --git a/minibank.lua b/minibank.lua index 60785a4..bf501b4 100644 --- a/minibank.lua +++ b/minibank.lua @@ -40,6 +40,6 @@ end) -- Let bank.lua add everything else. lurkcoin.change_bank({ - getbal = getbal, - setbal = setbal + getbal = getbal, + setbal = setbal })