diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-12-02 15:22:37 +0100 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-12-02 15:22:37 +0100 |
commit | ab5a5107756a9d97efcfe41d3460a7bea18299aa (patch) | |
tree | 832ff244bca4514878481030b69a01a1fec171e1 /init.lua | |
parent | 6c92826e3ccb2bb8850b5dfb587c2108ea50b75b (diff) | |
download | display_modpack_no_craft-ab5a5107756a9d97efcfe41d3460a7bea18299aa.tar.gz display_modpack_no_craft-ab5a5107756a9d97efcfe41d3460a7bea18299aa.zip |
Avoid crash if entity not defined.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -117,6 +117,10 @@ end --- Entity update function update_entity(entity) + if not entity then + return + end + if not entity.nodepos then entity.object:remove() -- Remove old/buggy entity return |