mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2024-12-22 22:22:25 +01:00
fix readaccount crash on /pay
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user