Small bug fixes and log cleanups.
This commit is contained in:
10
utils.lua
10
utils.lua
@ -30,12 +30,20 @@ end
|
||||
|
||||
function npc.utils.get_map_keys(map)
|
||||
local result = {}
|
||||
for key, value in pairs(map) do
|
||||
for key, _ in pairs(map) do
|
||||
table.insert(result, key)
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
function npc.utils.get_map_values(map)
|
||||
local result = {}
|
||||
for _, value in pairs(map) do
|
||||
table.insert(result, value)
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
-- This function searches for a node given the conditions specified in the
|
||||
-- query object, starting from the given start_pos and up to a certain, specified
|
||||
-- range.
|
||||
|
Reference in New Issue
Block a user