mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
Updated pipeworks
This commit is contained in:
parent
353d954d6e
commit
689911298e
@ -11,7 +11,7 @@ local function read_file()
|
|||||||
local t = f:read("*all")
|
local t = f:read("*all")
|
||||||
f:close()
|
f:close()
|
||||||
if t == "" or t == nil then return {} end
|
if t == "" or t == nil then return {} end
|
||||||
return minetest.deserialize(t)
|
return minetest.deserialize(t) or {}
|
||||||
end
|
end
|
||||||
|
|
||||||
local function write_file(tbl)
|
local function write_file(tbl)
|
||||||
@ -251,6 +251,10 @@ end
|
|||||||
-- end
|
-- end
|
||||||
|
|
||||||
function luaentity.add_entity(pos, name)
|
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
|
local index = luaentity.entities_index
|
||||||
while luaentity.entities[index] do
|
while luaentity.entities[index] do
|
||||||
index = index + 1
|
index = index + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user