1
0
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:
LeMagnesium 2016-06-04 21:10:17 +02:00
parent 23c47970af
commit 2932796a30

View File

@ -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