diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2019-06-07 00:54:45 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2019-06-07 00:54:45 -0400 |
commit | f11997ad956da3735bf118cdc43dc68b8a811b4f (patch) | |
tree | 672f9fcd0abf4b246643665375492bfce6253012 /pipeworks | |
parent | d4e5d04b4cc65846af7dae950e10c00eca8e2716 (diff) | |
download | dreambuilder_modpack-f11997ad956da3735bf118cdc43dc68b8a811b4f.tar dreambuilder_modpack-f11997ad956da3735bf118cdc43dc68b8a811b4f.tar.gz dreambuilder_modpack-f11997ad956da3735bf118cdc43dc68b8a811b4f.tar.bz2 dreambuilder_modpack-f11997ad956da3735bf118cdc43dc68b8a811b4f.tar.xz dreambuilder_modpack-f11997ad956da3735bf118cdc43dc68b8a811b4f.zip |
update caverealms lite, farming redo, homedecor, pipeworks, and xban2
Diffstat (limited to 'pipeworks')
-rw-r--r-- | pipeworks/luaentity.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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 |