mirror of
https://github.com/minetest-mods/carpets.git
synced 2024-11-19 22:03:43 +01:00
modutils.lua updated, whitespace-fixes
This commit is contained in:
parent
a579c1b6b9
commit
c058a4589e
@ -31,7 +31,11 @@ function modutils.get_depmod(modname)
|
|||||||
-- local variable definition
|
-- local variable definition
|
||||||
local depentry = {} -- Entry in deplist
|
local depentry = {} -- Entry in deplist
|
||||||
local depmodname -- temp value
|
local depmodname -- temp value
|
||||||
local dependsfile = io.open(minetest.get_modpath(modname).."/depends.txt")
|
local modpath = minetest.get_modpath(modname)
|
||||||
|
if not modpath then
|
||||||
|
return nil -- module not found
|
||||||
|
end
|
||||||
|
local dependsfile = io.open(modpath.."/depends.txt")
|
||||||
if dependsfile then
|
if dependsfile then
|
||||||
for dependsline in dependsfile:lines() do
|
for dependsline in dependsfile:lines() do
|
||||||
if string.sub(dependsline, -1) == "?" then
|
if string.sub(dependsline, -1) == "?" then
|
||||||
|
Loading…
Reference in New Issue
Block a user