From 51b76e193db19a5c06f2a371a8300aeb5601a08f Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sun, 15 Oct 2017 00:44:12 -0600 Subject: restoring "emergency abort" functionality to auto-controller --- class_layout.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'class_layout.lua') diff --git a/class_layout.lua b/class_layout.lua index 83f3c8b..d18004a 100644 --- a/class_layout.lua +++ b/class_layout.lua @@ -12,7 +12,7 @@ local get_node_image = function(pos, node) node_image.paramtype2 = node_def.paramtype2 local meta = minetest.get_meta(pos) node_image.meta = meta:to_table() - if node_image.meta ~= nil then + if node_image.meta ~= nil and node_def._digtron_formspec ~= nil then node_image.meta.fields.formspec = node_def._digtron_formspec -- causes formspec to be automatically upgraded whenever Digtron moves end -- cgit v1.2.3