fix readaccount crash on /pay

This commit is contained in:
Freeman 2023-09-01 06:51:50 +02:00
parent 32df3200a9
commit 85abb002f6

@ -90,7 +90,7 @@ end
function emeraldbank.transfer_emeralds(player1, player2, num)
local name = player1:get_player_name()
local name2 = player2:get_player_name()
atm.readaccount(name)
atm.read_account(name)
local bankemeralds1 = atm.balance[name]
if num > 0 then
if bankemeralds1 and bankemeralds1 >= num then