mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Make awards use the notification delay setting
This commit is contained in:
parent
f1f4ebff3f
commit
ee2c878160
2 changed files with 3 additions and 2 deletions
|
@ -30,7 +30,7 @@ local tunable_class = {}
|
||||||
function tunable_class:set(value)
|
function tunable_class:set(value)
|
||||||
local self_type = self.type
|
local self_type = self.type
|
||||||
if type(value) == "string" then
|
if type(value) == "string" then
|
||||||
self[1] = self_type.from_string(value)
|
self[1] = self_type.from_string(value) or self.default
|
||||||
else
|
else
|
||||||
self[1] = value
|
self[1] = value
|
||||||
end
|
end
|
||||||
|
@ -51,6 +51,7 @@ function mod.get_server_setting(name, description, default, setting, setting_typ
|
||||||
|
|
||||||
tunable = {
|
tunable = {
|
||||||
name = name,
|
name = name,
|
||||||
|
default = default,
|
||||||
setting = setting,
|
setting = setting,
|
||||||
description = description,
|
description = description,
|
||||||
type = tunable_types[setting_type],
|
type = tunable_types[setting_type],
|
||||||
|
|
|
@ -365,7 +365,7 @@ function awards.unlock(name, award)
|
||||||
direction = 0,
|
direction = 0,
|
||||||
z_index = 102,
|
z_index = 102,
|
||||||
})
|
})
|
||||||
minetest.after(3, function(name)
|
minetest.after(notif_delay[1], function(name)
|
||||||
local player = minetest.get_player_by_name(name)
|
local player = minetest.get_player_by_name(name)
|
||||||
if not player then
|
if not player then
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue