From f11997ad956da3735bf118cdc43dc68b8a811b4f Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Fri, 7 Jun 2019 00:54:45 -0400 Subject: update caverealms lite, farming redo, homedecor, pipeworks, and xban2 --- pipeworks/luaentity.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pipeworks') diff --git a/pipeworks/luaentity.lua b/pipeworks/luaentity.lua index c11c030..8385264 100644 --- a/pipeworks/luaentity.lua +++ b/pipeworks/luaentity.lua @@ -46,6 +46,11 @@ local function read_entities() end local function write_entities() + if not luaentity.entities then + -- This can happen if crashing on startup, causing another error that + -- masks the original one. Return gracefully in that case instead. + return + end for _, entity in pairs(luaentity.entities) do setmetatable(entity, nil) for _, attached in pairs(entity._attached_entities) do -- cgit v1.2.3