mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +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
|
||||
|
||||
local function write_entities()
|
||||
for _, entity in pairs(luaentity.entities) do
|
||||
for _, entity in pairs(luaentity.entities or {}) do
|
||||
setmetatable(entity, nil)
|
||||
for _, attached in pairs(entity._attached_entities) do
|
||||
if attached.entity then
|
||||
|
Loading…
Reference in New Issue
Block a user