only func definitions in func file

This commit is contained in:
Freeman 2023-08-25 17:35:40 +02:00
parent b84183b598
commit a01f477fc0
2 changed files with 6 additions and 10 deletions

@ -201,11 +201,6 @@ function atm.write_transactions()
end
minetest.register_on_joinplayer(atm.readaccounts)
minetest.register_on_joinplayer(emeraldbank.update_account)
function emeraldbank.upgrade_shop(pos)
local oldnode = core.get_node(pos)
local old_meta = core.get_meta(pos)
@ -561,8 +556,3 @@ function emeraldbank.wt_receive_fields(player, form, pressed)
end
end
minetest.register_on_player_receive_fields(emeraldbank.bank_receive_fields)
minetest.register_on_player_receive_fields(emeraldbank.wt_receive_fields)

@ -44,3 +44,9 @@ dofile(modpath .. "/commands.lua")
if income_enabled then
dofile(modpath .. "/income.lua")
end
minetest.register_on_joinplayer(atm.readaccounts)
minetest.register_on_joinplayer(emeraldbank.update_account)
minetest.register_on_player_receive_fields(emeraldbank.bank_receive_fields)
minetest.register_on_player_receive_fields(emeraldbank.wt_receive_fields)