diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-01-12 14:51:57 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-01-12 14:51:57 -0700 |
commit | 9da077c9efa5cc3f5b994c0064daa922efd465db (patch) | |
tree | 7d2bc8091f0ca88804260b8b2367011397ef8479 /class_layout.lua | |
parent | 0dadeb054e52e0069535f3cbe93a53c1142f7462 (diff) |
fix crash when auto-controller reaches unloaded nodes.
Diffstat (limited to 'class_layout.lua')
-rw-r--r-- | class_layout.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/class_layout.lua b/class_layout.lua index 11ba4d0..67ddbf2 100644 --- a/class_layout.lua +++ b/class_layout.lua @@ -78,7 +78,8 @@ function DigtronLayout.create(pos, player) if node.name == "ignore" then --buildtron array is next to unloaded nodes, too dangerous to do anything. Abort. - return nil + self.all = nil + return self end if minetest.get_item_group(node.name, "water") ~= 0 then @@ -347,4 +348,3 @@ function DigtronLayout.write_layout_image(self) end end end - |