diff --git a/functions.lua b/functions.lua index dab0328..cff9507 100644 --- a/functions.lua +++ b/functions.lua @@ -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) diff --git a/init.lua b/init.lua index 88ad92c..420e5fc 100644 --- a/init.lua +++ b/init.lua @@ -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)