Make awards use the notification delay setting

This commit is contained in:
teknomunk 2024-05-30 18:32:16 -05:00
parent f1f4ebff3f
commit ee2c878160
2 changed files with 3 additions and 2 deletions

View file

@ -30,7 +30,7 @@ local tunable_class = {}
function tunable_class:set(value)
local self_type = self.type
if type(value) == "string" then
self[1] = self_type.from_string(value)
self[1] = self_type.from_string(value) or self.default
else
self[1] = value
end
@ -51,6 +51,7 @@ function mod.get_server_setting(name, description, default, setting, setting_typ
tunable = {
name = name,
default = default,
setting = setting,
description = description,
type = tunable_types[setting_type],

View file

@ -365,7 +365,7 @@ function awards.unlock(name, award)
direction = 0,
z_index = 102,
})
minetest.after(3, function(name)
minetest.after(notif_delay[1], function(name)
local player = minetest.get_player_by_name(name)
if not player then
return