mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
moved depver lua code in dep level condition
This commit is contained in:
parent
3131068ad8
commit
5d91d94433
1 changed files with 6 additions and 7 deletions
|
|
@ -189,17 +189,16 @@ function check_dependencies(packinfo)
|
||||||
"%s (%s)", gui.str("error.dependency-not-found"), depid
|
"%s (%s)", gui.str("error.dependency-not-found"), depid
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local dep_pack = pack.get_info(depid);
|
||||||
|
if depver ~= "*" or depver ~= dep_pack.version then
|
||||||
|
return string.format("%s (%s@%s != %s)", gui.str("error.dependency-version-not-met"), depid, dep_pack.version, depver);
|
||||||
|
end
|
||||||
|
|
||||||
if table.has(packs_installed, packinfo.id) then
|
if table.has(packs_installed, packinfo.id) then
|
||||||
table.insert(required, depid)
|
table.insert(required, depid)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local dep_pack = pack.get_info(depid);
|
|
||||||
|
|
||||||
if depver ~= "*" or depver ~= dep_pack.version then
|
|
||||||
return string.format("%s (%s@%s != %s)", gui.str("error.dependency-version-not-met"), depid, dep_pack.version, depver);
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue