mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2024-12-23 06:32:25 +01:00
only func definitions in func file
This commit is contained in:
parent
b84183b598
commit
a01f477fc0
@ -201,11 +201,6 @@ function atm.write_transactions()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_on_joinplayer(atm.readaccounts)
|
|
||||||
minetest.register_on_joinplayer(emeraldbank.update_account)
|
|
||||||
|
|
||||||
|
|
||||||
function emeraldbank.upgrade_shop(pos)
|
function emeraldbank.upgrade_shop(pos)
|
||||||
local oldnode = core.get_node(pos)
|
local oldnode = core.get_node(pos)
|
||||||
local old_meta = core.get_meta(pos)
|
local old_meta = core.get_meta(pos)
|
||||||
@ -561,8 +556,3 @@ function emeraldbank.wt_receive_fields(player, form, pressed)
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
minetest.register_on_player_receive_fields(emeraldbank.bank_receive_fields)
|
|
||||||
|
|
||||||
minetest.register_on_player_receive_fields(emeraldbank.wt_receive_fields)
|
|
||||||
|
6
init.lua
6
init.lua
@ -44,3 +44,9 @@ dofile(modpath .. "/commands.lua")
|
|||||||
if income_enabled then
|
if income_enabled then
|
||||||
dofile(modpath .. "/income.lua")
|
dofile(modpath .. "/income.lua")
|
||||||
end
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user