forked from nalc/awards
Move icon/bg/cstm_announce check to correct place
This commit is contained in:
parent
f9ec33fb1b
commit
647e7b8969
4
api.lua
4
api.lua
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
-- Table Save Load Functions
|
-- Table Save Load Functions
|
||||||
function save_playerD()
|
function save_playerD()
|
||||||
local file = io.open(minetest.get_worldpath().."/awards.txt", "w")
|
local file = io.open(minetest.get_worldpath().."/awards.txt", "w")
|
||||||
|
@ -54,6 +53,8 @@ function awards.register_achievement(name,data_table)
|
||||||
}
|
}
|
||||||
table.insert(awards.onDeath,tmp)
|
table.insert(awards.onDeath,tmp)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if data_table['icon'] == nil or data_table['icon'] == "" then
|
if data_table['icon'] == nil or data_table['icon'] == "" then
|
||||||
data_table['icon'] = "unknown.png"
|
data_table['icon'] = "unknown.png"
|
||||||
end
|
end
|
||||||
|
@ -64,7 +65,6 @@ function awards.register_achievement(name,data_table)
|
||||||
data_table['custom_announce'] = "Achievement Unlocked:"
|
data_table['custom_announce'] = "Achievement Unlocked:"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
|
||||||
awards['def'][name] = data_table
|
awards['def'][name] = data_table
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user