From 9da077c9efa5cc3f5b994c0064daa922efd465db Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Thu, 12 Jan 2017 14:51:57 -0700 Subject: [PATCH] fix crash when auto-controller reaches unloaded nodes. --- class_layout.lua | 4 ++-- 1 file 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 -