Fix another string.gfind call ...
This commit is contained in:
parent
bc3ece2d83
commit
6db816ca34
@ -86,7 +86,7 @@ function village.load_villages()
|
|||||||
local l = f:read("*l")
|
local l = f:read("*l")
|
||||||
if l == nil then break end
|
if l == nil then break end
|
||||||
|
|
||||||
for name, fname, pos in string.gfind(l, "(.+) (%a+) (%d.+)") do
|
for name, fname, pos in string.gmatch(l, "(.+) (%a+) (%d.+)") do
|
||||||
village.villages[name] = {
|
village.villages[name] = {
|
||||||
name = fname,
|
name = fname,
|
||||||
pos = minetest.get_position_from_hash(pos),
|
pos = minetest.get_position_from_hash(pos),
|
||||||
|
Loading…
Reference in New Issue
Block a user