add nil check for priority
This commit is contained in:
parent
b3f3903404
commit
aea8605e7f
2
init.lua
2
init.lua
@ -39,7 +39,7 @@ pova.add_override = function(name, item, def)
|
||||
if not name or not item then return end
|
||||
|
||||
-- priority defaults to 50 when not included
|
||||
def.priority = def.priority or 50
|
||||
def.priority = tonumber(def.priority) or 50
|
||||
|
||||
-- if same item is assigned with lower priority then change ignored
|
||||
if pova_list[name][item]
|
||||
|
Loading…
x
Reference in New Issue
Block a user