mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2024-12-28 19:50:37 +01:00
Separate triggers from API
This commit is contained in:
parent
30aee5090f
commit
0e2ed176fa
10
api.lua
10
api.lua
@ -18,6 +18,7 @@
|
||||
awards = {
|
||||
show_mode = "hud"
|
||||
}
|
||||
dofile(minetest.get_modpath("awards").."/helpers.lua")
|
||||
|
||||
-- Table Save Load Functions
|
||||
function awards.save()
|
||||
@ -47,8 +48,6 @@ function awards.load()
|
||||
return {}
|
||||
end
|
||||
|
||||
awards.init()
|
||||
|
||||
function awards.register_trigger(name, func)
|
||||
awards.trigger_types[name] = func
|
||||
awards.on[name] = {}
|
||||
@ -367,9 +366,4 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
return true
|
||||
end)
|
||||
|
||||
|
||||
|
||||
|
||||
-- Load files
|
||||
dofile(minetest.get_modpath("awards").."/helpers.lua")
|
||||
dofile(minetest.get_modpath("awards").."/triggers.lua")
|
||||
awards.init()
|
||||
|
Loading…
Reference in New Issue
Block a user