mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 18:20:36 +01:00
[pipeworks] Use empty tables when luaentities is nil
This commit is contained in:
parent
23c47970af
commit
2932796a30
@ -29,7 +29,7 @@ local function read_entities()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function write_entities()
|
local function write_entities()
|
||||||
for _, entity in pairs(luaentity.entities) do
|
for _, entity in pairs(luaentity.entities or {}) do
|
||||||
setmetatable(entity, nil)
|
setmetatable(entity, nil)
|
||||||
for _, attached in pairs(entity._attached_entities) do
|
for _, attached in pairs(entity._attached_entities) do
|
||||||
if attached.entity then
|
if attached.entity then
|
||||||
|
Loading…
Reference in New Issue
Block a user