1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +01:00

Updated pipeworks

This commit is contained in:
LeMagnesium 2015-06-27 18:17:59 +02:00
parent 353d954d6e
commit 689911298e

View File

@ -11,7 +11,7 @@ local function read_file()
local t = f:read("*all")
f:close()
if t == "" or t == nil then return {} end
return minetest.deserialize(t)
return minetest.deserialize(t) or {}
end
local function write_file(tbl)
@ -251,6 +251,10 @@ end
-- end
function luaentity.add_entity(pos, name)
if not luaentity.entities then
minetest.after(0, luaentity.add_entity, vector.new(pos), name)
return
end
local index = luaentity.entities_index
while luaentity.entities[index] do
index = index + 1