modutils.lua updated, whitespace-fixes

This commit is contained in:
Alexander Weber 2016-10-19 09:38:04 +02:00
parent a579c1b6b9
commit c058a4589e
2 changed files with 33 additions and 29 deletions

@ -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