mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-12-22 20:32:22 +01:00
fix crash when auto-controller reaches unloaded nodes.
This commit is contained in:
parent
0dadeb054e
commit
9da077c9ef
@ -78,7 +78,8 @@ function DigtronLayout.create(pos, player)
|
|||||||
|
|
||||||
if node.name == "ignore" then
|
if node.name == "ignore" then
|
||||||
--buildtron array is next to unloaded nodes, too dangerous to do anything. Abort.
|
--buildtron array is next to unloaded nodes, too dangerous to do anything. Abort.
|
||||||
return nil
|
self.all = nil
|
||||||
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.get_item_group(node.name, "water") ~= 0 then
|
if minetest.get_item_group(node.name, "water") ~= 0 then
|
||||||
@ -347,4 +348,3 @@ function DigtronLayout.write_layout_image(self)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user